[GRASS-SVN] r72486 - grass/branches/releasebranch_7_2/gui/wxpython/tplot

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 22 04:08:39 PDT 2018


Author: lucadelu
Date: 2018-03-22 04:08:39 -0700 (Thu, 22 Mar 2018)
New Revision: 72486

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/tplot/frame.py
Log:
g.gui.tplot: resolved problem with stdvs when no categories are set, see #3294

Modified: grass/branches/releasebranch_7_2/gui/wxpython/tplot/frame.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/tplot/frame.py	2018-03-22 11:06:47 UTC (rev 72485)
+++ grass/branches/releasebranch_7_2/gui/wxpython/tplot/frame.py	2018-03-22 11:08:39 UTC (rev 72486)
@@ -381,6 +381,8 @@
         """Get a list of categories for a vector map"""
         vdb = grass.read_command('v.category', input=mapp, option='print')
         categories = vdb.splitlines()
+        if not cats:
+            return categories
         for cat in cats:
             if str(cat) not in categories:
                 GMessage(message=_("Category {ca} is not on vector map"



More information about the grass-commit mailing list