From 6d550b4a5d4d4673d0da846ccd4f50b6dc867f87 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 26 Jan 2012 22:27:57 +0000 Subject: [PATCH] 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. --- aegisub/src/base_grid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/src/base_grid.cpp b/aegisub/src/base_grid.cpp index 5108b01d9..fbdcf262d 100644 --- a/aegisub/src/base_grid.cpp +++ b/aegisub/src/base_grid.cpp @@ -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); }