Browse Source

Fixed bug that prevents legend dialog from opening in psmap gui.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47215 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 13 years ago
parent
commit
b34cfa63a2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      gui/wxpython/gui_modules/psmap_dialogs.py

+ 1 - 1
gui/wxpython/gui_modules/psmap_dialogs.py

@@ -3960,7 +3960,7 @@ class LegendDialog(PsmapDialog):
         self.borderCheck = wx.CheckBox(panel, id = wx.ID_ANY, label = _("draw border around legend"))
         self.borderColorCtrl = wx.ColourPickerCtrl(panel, id = wx.ID_ANY, style = wx.FNTP_FONTDESC_AS_LABEL)
         if self.vLegendDict['border'] == 'none':
-            self.borderColorCtrl.SetColour('black')
+            self.borderColorCtrl.SetColour(wx.BLACK)
             self.borderCheck.SetValue(False)
         else:
             self.borderColorCtrl.SetColour(convertRGB(self.vLegendDict['border']))