[GRASS-SVN] r72485 - grass/trunk/gui/wxpython/tplot

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 22 04:06:48 PDT 2018


Author: lucadelu
Date: 2018-03-22 04:06:47 -0700 (Thu, 22 Mar 2018)
New Revision: 72485

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

Modified: grass/trunk/gui/wxpython/tplot/frame.py
===================================================================
--- grass/trunk/gui/wxpython/tplot/frame.py	2018-03-22 07:39:31 UTC (rev 72484)
+++ grass/trunk/gui/wxpython/tplot/frame.py	2018-03-22 11:06:47 UTC (rev 72485)
@@ -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