Parcourir la source

cmbarton: Fix for invisible combo box in digitizing toolbar on Mac
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33778)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33780 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa il y a 16 ans
Parent
commit
e519682eae
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      gui/wxpython/gui_modules/toolbars.py

+ 4 - 0
gui/wxpython/gui_modules/toolbars.py

@@ -439,6 +439,10 @@ class VDigitToolbar(AbstractToolbar):
         # realize toolbar
         for row in range(0, self.numOfRows):
             self.toolbar[row].Realize()
+            # workaround for Mac bug. May be fixed by 2.8.8, but not before then.
+            self.combo.Hide()
+            self.combo.Show()
+
 
         # disable undo/redo
         self.toolbar[0].EnableTool(self.undo, False)