Przeglądaj źródła

libgis: map (data element) found in more mapsets - turn warning into important message

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69992 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 lat temu
rodzic
commit
5410421be1
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      lib/gis/find_file.c

+ 3 - 3
lib/gis/find_file.c

@@ -111,8 +111,8 @@ static const char *find_file(int misc, const char *dir,
 		if (!pselmapset)
 		if (!pselmapset)
 		    pselmapset = pmapset;
 		    pselmapset = pmapset;
 		else if (element == pelement)
 		else if (element == pelement)
-		    G_warning(_("'%s/%s' was found in more mapsets (also found in <%s>)"),
-			      element, pname, pmapset);
+		    G_important_message(_("Data element '%s/%s' was found in more mapsets (also found in <%s>)"),
+                                        element, pname, pmapset);
 		cnt++;
 		cnt++;
 	    }
 	    }
 	}
 	}
@@ -124,7 +124,7 @@ static const char *find_file(int misc, const char *dir,
 	    if (access(path, 0) == 0) {
 	    if (access(path, 0) == 0) {
 		/* If the same name exists in more mapsets and print a warning */
 		/* If the same name exists in more mapsets and print a warning */
 		if (cnt > 1 && element == pelement)
 		if (cnt > 1 && element == pelement)
-		    G_warning(_("Using <%s@%s>"),
+		    G_important_message(_("Using <%s@%s>..."),
 			      pname, pselmapset);
 			      pname, pselmapset);
 	    
 	    
 		return G_store(pselmapset);
 		return G_store(pselmapset);