mirror of https://github.com/odrling/Aegisub
Only paint the margin values in the grid if they're non-zero
Showing zero is mildly misleading since it's actually default margin rather than no margin, and this makes it much easier to spot the rows where there's actually an interesting value.
This commit is contained in:
parent
04435a13a3
commit
921d5ed01a
|
@ -590,9 +590,9 @@ void BaseGrid::GetRowStrings(int row, AssDialogue *line, bool *paint_columns, wx
|
|||
if (paint_columns[4]) strings[4] = to_wx(line->Style);
|
||||
if (paint_columns[5]) strings[5] = to_wx(line->Actor);
|
||||
if (paint_columns[6]) strings[6] = to_wx(line->Effect);
|
||||
if (paint_columns[7]) strings[7] = std::to_wstring(line->Margin[0]);
|
||||
if (paint_columns[8]) strings[8] = std::to_wstring(line->Margin[1]);
|
||||
if (paint_columns[9]) strings[9] = std::to_wstring(line->Margin[2]);
|
||||
if (paint_columns[7]) strings[7] = line->Margin[0] ? std::to_wstring(line->Margin[0]) : wxS("");
|
||||
if (paint_columns[8]) strings[8] = line->Margin[1] ? std::to_wstring(line->Margin[1]) : wxS("");
|
||||
if (paint_columns[9]) strings[9] = line->Margin[2] ? std::to_wstring(line->Margin[2]) : wxS("");
|
||||
|
||||
if (paint_columns[10]) {
|
||||
strings[10].clear();
|
||||
|
|
Loading…
Reference in New Issue