diff --git a/gui/wxpython/modules/colorrules.py b/gui/wxpython/modules/colorrules.py index 9e42204ba45..ec7f6043c6e 100644 --- a/gui/wxpython/modules/colorrules.py +++ b/gui/wxpython/modules/colorrules.py @@ -1251,7 +1251,7 @@ def _doLayout(self): def OnPaneChanged(self, event=None): # redo the layout - self.Layout() + self.panel.Layout() # and also change the labels if self.cp.IsExpanded(): self.cp.SetLabel('')