Ver código fonte

wxGUI: fix launching scale bar dialog

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57429 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 anos atrás
pai
commit
e75a598b3b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      gui/wxpython/mapwin/decorations.py

+ 1 - 1
gui/wxpython/mapwin/decorations.py

@@ -365,7 +365,7 @@ class DecorationDialog(wx.Dialog):
                 self.resizeBtn.Enable()
 
     def Show(self, show=True):
-        if show:
+        if show and self._ddstyle == DECOR_DIALOG_LEGEND:
             self.resizeBtn.Enable(not self.parent.IsPaneShown('3d'))
         wx.Dialog.Show(self, show)