Browse Source

Vect_get_map_box(): recover old behaviors, output box is filled even on level1 (see v.info/level1.c)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70525 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 năm trước cách đây
mục cha
commit
ae625bf48a
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      lib/vector/Vlib/box.c

+ 3 - 3
lib/vector/Vlib/box.c

@@ -395,12 +395,12 @@ int Vect_get_map_box(const struct Map_info *Map, struct bound_box *Box)
 {
     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;
 }