[GRASS-SVN] r70525 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Feb 10 01:38:52 PST 2017


Author: martinl
Date: 2017-02-10 01:38:52 -0800 (Fri, 10 Feb 2017)
New Revision: 70525

Modified:
   grass/trunk/lib/vector/Vlib/box.c
Log:
Vect_get_map_box(): recover old behaviors, output box is filled even on level1 (see v.info/level1.c)


Modified: grass/trunk/lib/vector/Vlib/box.c
===================================================================
--- grass/trunk/lib/vector/Vlib/box.c	2017-02-10 09:30:00 UTC (rev 70524)
+++ grass/trunk/lib/vector/Vlib/box.c	2017-02-10 09:38:52 UTC (rev 70525)
@@ -395,12 +395,12 @@
 {
     const struct Plus_head *Plus;
 
-    if (Vect_level(Map) < 2)
-        return 0;
-    
     Plus = &(Map->plus);
     Vect_box_copy(Box, &(Plus->box));
 
+    if (Vect_level(Map) < 2)
+      return 0;
+    
     return 1;
 }
 



More information about the grass-commit mailing list