Actually hide override tags in hide tags mode. Closes #1360.

Originally committed to SVN as r5830.
This commit is contained in:
Thomas Goyne 2011-11-08 00:25:02 +00:00
parent dc380c5848
commit 89541a949f

View file

@ -624,7 +624,10 @@ void BaseGrid::GetRowStrings(int row, AssDialogue *line, bool *paint_columns, wx
// Hidden overrides
if (mode == 1 || mode == 2) {
wxString replaceWith = lagi_wxString(OPT_GET("Subtitle/Grid/Hide Overrides Char")->GetString());
wxString replaceWith;
if (mode == 1)
replaceWith = lagi_wxString(OPT_GET("Subtitle/Grid/Hide Overrides Char")->GetString());
strings[10].reserve(line->Text.size());
size_t start = 0, pos;
while ((pos = line->Text.find('{', start)) != wxString::npos) {