[GRASS-SVN] r68613 - grass/branches/releasebranch_7_2/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 5 12:17:06 PDT 2016
Author: annakrat
Date: 2016-06-05 12:17:06 -0700 (Sun, 05 Jun 2016)
New Revision: 68613
Modified:
grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py
Log:
wxGUI: add north arrow the same way as legend if typed in command console (merge from trunk, r68612)
Modified: grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py 2016-06-05 19:14:22 UTC (rev 68612)
+++ grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py 2016-06-05 19:17:06 UTC (rev 68613)
@@ -756,6 +756,11 @@
self.GetMapDisplay().AddLegend(cmd=command, showDialog=False)
else:
self.GetMapDisplay().AddLegend(showDialog=True)
+ elif layertype == 'northarrow':
+ if len(command) > 1:
+ self.GetMapDisplay().AddArrow(cmd=command, showDialog=False)
+ else:
+ self.GetMapDisplay().AddArrow(showDialog=True)
elif layertype == 'redraw':
self.GetMapDisplay().OnRender(None)
elif layertype == 'export':
More information about the grass-commit
mailing list