mirror of https://github.com/odrling/Aegisub
Repaint the entire grid on timing changes
Timing changes can potentially make all of the columns need to be repainted (due to the collision line color), and the grid currently isn't smart enough to know when this is actually the case, so just always repaint the entire thing. Originally committed to SVN as r6371.
This commit is contained in:
parent
a1ad0fa585
commit
6d550b4a5d
|
@ -165,8 +165,9 @@ void BaseGrid::OnSubtitlesCommit(int type) {
|
|||
return;
|
||||
}
|
||||
if (type & AssFile::COMMIT_DIAG_TIME)
|
||||
RefreshRect(wxRect(time_cols_x, 0, time_cols_w, GetClientSize().GetHeight()), false);
|
||||
if (type & AssFile::COMMIT_DIAG_TEXT)
|
||||
Refresh(false);
|
||||
//RefreshRect(wxRect(time_cols_x, 0, time_cols_w, GetClientSize().GetHeight()), false);
|
||||
else if (type & AssFile::COMMIT_DIAG_TEXT)
|
||||
RefreshRect(wxRect(text_col_x, 0, text_col_w, GetClientSize().GetHeight()), false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue