File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,9 @@ void BaseGrid::UpdateStyle() {
186
186
row_colors.SelectedComment .SetColour (to_wx (OPT_GET (" Colour/Subtitle Grid/Background/Selected Comment" )->GetColor ()));
187
187
row_colors.LeftCol .SetColour (to_wx (OPT_GET (" Colour/Subtitle Grid/Left Column" )->GetColor ()));
188
188
189
+ if (width_helper)
190
+ width_helper->ClearCache ();
191
+
189
192
SetColumnWidths ();
190
193
191
194
AdjustScrollbar ();
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class WidthHelper {
41
41
public:
42
42
void SetDC (wxDC *dc) { this ->dc = dc; }
43
43
void Age ();
44
+ void ClearCache () { widths.clear (); };
44
45
45
46
int operator ()(boost::flyweight<std::string> const & str);
46
47
int operator ()(std::string const & str);
You can’t perform that action at this time.
0 commit comments