[GRASS-SVN] r72490 - grass/branches/releasebranch_7_4/gui/wxpython/tplot
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 22 05:54:21 PDT 2018
Author: lucadelu
Date: 2018-03-22 05:54:21 -0700 (Thu, 22 Mar 2018)
New Revision: 72490
Modified:
grass/branches/releasebranch_7_4/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_4/gui/wxpython/tplot/frame.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/tplot/frame.py 2018-03-22 12:45:53 UTC (rev 72489)
+++ grass/branches/releasebranch_7_4/gui/wxpython/tplot/frame.py 2018-03-22 12:54:21 UTC (rev 72490)
@@ -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