Bladeren bron

wxGUI: attempt to get rid of CGContextRestoreGState on Mac (see wxWidgets ticket 4272)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51089 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 jaren geleden
bovenliggende
commit
f9ec867560
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      gui/wxpython/gui_core/goutput.py
  2. 1 1
      gui/wxpython/gui_core/prompt.py

+ 1 - 1
gui/wxpython/gui_core/goutput.py

@@ -1058,7 +1058,7 @@ class GMStc(wx.stc.StyledTextCtrl):
         """!Copy selected text to clipboard and skip event.
         The same function is in TextCtrlAutoComplete class (prompt.py).
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         
     def SetStyle(self):

+ 1 - 1
gui/wxpython/gui_core/prompt.py

@@ -728,7 +728,7 @@ class GPromptSTC(GPrompt, wx.stc.StyledTextCtrl):
         """!Copy selected text to clipboard and skip event.
         The same function is in GMStc class (goutput.py).
         """
-        self.Copy()
+        wx.CallAfter(self.Copy)
         event.Skip()
         
     def OnItemChanged(self, event):