[GRASS-SVN] r43876 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 12 07:08:26 EDT 2010


Author: martinl
Date: 2010-10-12 04:08:26 -0700 (Tue, 12 Oct 2010)
New Revision: 43876

Modified:
   grass/branches/develbranch_6/lib/gis/color_print.c
Log:
G_print_colors(): fix checking colr2


Modified: grass/branches/develbranch_6/lib/gis/color_print.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/color_print.c	2010-10-12 08:24:27 UTC (rev 43875)
+++ grass/branches/develbranch_6/lib/gis/color_print.c	2010-10-12 11:08:26 UTC (rev 43876)
@@ -42,7 +42,8 @@
     
     /* first look for secondary color table in current mapset */
     sprintf(element, "colr2/%s", mapset);
-    if (print_color_table(element, name, mapset, file) < 0)
+    if (print_color_table(element, name, G_mapset(), file) < 0)
+	/* now look for the regular color table */
 	if (print_color_table("colr", name, mapset, file) < 0)
 	    return -2;
     



More information about the grass-commit mailing list