Browse Source

v.colors: currently only vector maps from the current mapset can be modified

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47602 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 years ago
parent
commit
c383330742
1 changed files with 4 additions and 1 deletions
  1. 4 1
      vector/v.colors/main.c

+ 4 - 1
vector/v.colors/main.c

@@ -177,7 +177,10 @@ int main(int argc, char *argv[])
     Vect_open_old2(&Map, name, "", opt.field->answer);
     name   = Vect_get_name(&Map);
     mapset = Vect_get_mapset(&Map);
-    
+
+    if (strcmp(mapset, G_mapset()) != 0)
+      G_fatal_error(_("Module currently allows to modify only vector maps from the current mapset"));
+
     stat = -1;
     if (remove) {
 	stat = Vect_remove_colors(name, mapset);