[GRASS-SVN] r68505 - grass/trunk/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Tue May 24 13:03:29 PDT 2016


Author: annakrat
Date: 2016-05-24 13:03:29 -0700 (Tue, 24 May 2016)
New Revision: 68505

Modified:
   grass/trunk/gui/wxpython/gui_core/widgets.py
Log:
wxGUI: fix 4pt_star picture in d.northarrow selection widget

Modified: grass/trunk/gui/wxpython/gui_core/widgets.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/widgets.py	2016-05-24 17:45:16 UTC (rev 68504)
+++ grass/trunk/gui/wxpython/gui_core/widgets.py	2016-05-24 20:03:29 UTC (rev 68505)
@@ -1600,10 +1600,14 @@
             int(name[0])
             return os.path.join(path, 'n_arrows', 'n_arrow{name}.png'.format(name=name))
         except ValueError:
+            if name == 'star':
+                name = '4pt_star'
             if os.path.exists(os.path.join(path, 'n_arrows', '{name}.png'.format(name=name))):
                 return os.path.join(path, 'n_arrows', '{name}.png'.format(name=name))
+            elif os.path.exists(os.path.join(path, 'basic', '{name}.png'.format(name=name))):
+                return os.path.join(path, 'basic', '{name}.png'.format(name=name))
             else:
-                return os.path.join(path, 'basic', '{name}.png'.format(name=name))
+                return os.path.join(path, 'extra', '{name}.png'.format(name=name))
 
     def OnMeasureItem(self, item):
         return 32



More information about the grass-commit mailing list