[mapserver-commits] r10762 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Nov 25 12:36:16 EST 2010


Author: tbonfort
Date: 2010-11-25 09:36:16 -0800 (Thu, 25 Nov 2010)
New Revision: 10762

Modified:
   trunk/mapserver/maperror.c
Log:
fix creation of error image


Modified: trunk/mapserver/maperror.c
===================================================================
--- trunk/mapserver/maperror.c	2010-11-25 16:49:42 UTC (rev 10761)
+++ trunk/mapserver/maperror.c	2010-11-25 17:36:16 UTC (rev 10762)
@@ -400,6 +400,9 @@
   fontMetrics *font = NULL;
   char *imagepath = NULL, *imageurl = NULL;
   labelStyleObj ls;
+  colorObj labelcolor, labeloutlinecolor;
+  ls.color = &labelcolor;
+  ls.outlinecolor = &labeloutlinecolor;
   
   if (map) {
       if( map->width > 0 && map->height > 0 )
@@ -425,6 +428,7 @@
 	  if((font = renderer->bitmapFontMetrics[font_index]) != NULL) {
 	     ls.size = i;
 		  MS_INIT_COLOR(*ls.color,0,0,0);
+		  MS_INIT_COLOR(*ls.outlinecolor,255,255,255);
 		  break;
 	  }
   }



More information about the mapserver-commits mailing list