forked from mia/Aegisub
Make the check for if an override tag needs parens less dumb
This commit is contained in:
parent
422cfb153f
commit
0ac8df140c
1 changed files with 1 additions and 9 deletions
|
@ -428,15 +428,7 @@ AssOverrideTag::operator wxString() const {
|
|||
wxString result = Name;
|
||||
|
||||
// Determine if it needs parentheses
|
||||
bool parentheses =
|
||||
Name == "\\t" ||
|
||||
Name == "\\pos" ||
|
||||
Name == "\\fad" ||
|
||||
Name == "\\org" ||
|
||||
Name == "\\clip" ||
|
||||
Name == "\\iclip" ||
|
||||
Name == "\\move" ||
|
||||
Name == "\\fade";
|
||||
bool parentheses = Params.size() > 1;
|
||||
if (parentheses) result += "(";
|
||||
|
||||
// Add parameters
|
||||
|
|
Loading…
Reference in a new issue