diff --git a/aegisub/src/base_grid.h b/aegisub/src/base_grid.h index 2bde01568..c323a03fe 100644 --- a/aegisub/src/base_grid.h +++ b/aegisub/src/base_grid.h @@ -71,9 +71,6 @@ class BaseGrid : public wxWindow, public BaseSelectionController { /// DOCME int lineHeight; - /// DOCME - int colWidth[16]; - /// DOCME int lastRow; @@ -112,6 +109,9 @@ class BaseGrid : public wxWindow, public BaseSelectionController { protected: + /// DOCME + int colWidth[16]; + /// DOCME FrameMain *parentFrame; diff --git a/aegisub/src/subs_grid.cpp b/aegisub/src/subs_grid.cpp index ab78e77ec..c31daf417 100644 --- a/aegisub/src/subs_grid.cpp +++ b/aegisub/src/subs_grid.cpp @@ -127,9 +127,14 @@ void SubtitlesGrid::OnCommit(int type) { else if (type == AssFile::COMMIT_UNDO) UpdateMaps(true); - if (type != AssFile::COMMIT_TIMES) + if (type == AssFile::COMMIT_TIMES) { + // Refresh just the audio times columns + RefreshRect(wxRect(colWidth[0] + colWidth[1], 0, colWidth[2] + colWidth[3], GetClientSize().GetHeight()), false); + } + else { SetColumnWidths(); - Refresh(false); + Refresh(false); + } } /// @brief Popup menu