[GRASS-SVN] r73813 - grass-addons/grass7/vector/v.colors2

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 17 01:22:23 PST 2018


Author: lucadelu
Date: 2018-12-17 01:22:23 -0800 (Mon, 17 Dec 2018)
New Revision: 73813

Modified:
   grass-addons/grass7/vector/v.colors2/v.colors2.py
Log:
v.colors2: fixed #3712

Modified: grass-addons/grass7/vector/v.colors2/v.colors2.py
===================================================================
--- grass-addons/grass7/vector/v.colors2/v.colors2.py	2018-12-16 16:58:23 UTC (rev 73812)
+++ grass-addons/grass7/vector/v.colors2/v.colors2.py	2018-12-17 09:22:23 UTC (rev 73813)
@@ -180,7 +180,7 @@
     maxval = max(vals)
 
     grass.verbose(_("Range: [%s, %s]") % (minval, maxval))
-    if not minval or not maxval:
+    if minval is None or maxval is None:
 	grass.fatal(_("Scanning data range"))
 
     # setup internal region



More information about the grass-commit mailing list