[mapserver-commits] r10799 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Dec 15 05:54:43 EST 2010
Author: tbonfort
Date: 2010-12-15 02:54:43 -0800 (Wed, 15 Dec 2010)
New Revision: 10799
Modified:
trunk/mapserver/maperror.c
Log:
fix bug introduced in r10772
Modified: trunk/mapserver/maperror.c
===================================================================
--- trunk/mapserver/maperror.c 2010-12-13 15:26:53 UTC (rev 10798)
+++ trunk/mapserver/maperror.c 2010-12-15 10:54:43 UTC (rev 10799)
@@ -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 )
@@ -424,8 +427,9 @@
/* use the first font we find */
if((font = renderer->bitmapFontMetrics[font_index]) != NULL) {
ls.size = i;
- MS_INIT_COLOR(*ls.color,0,0,0);
- break;
+ MS_INIT_COLOR(*ls.color,0,0,0);
+ MS_INIT_COLOR(*ls.outlinecolor,255,255,255);
+ break;
}
}
/* if no font found we can't do much. this shouldn't happen */
More information about the mapserver-commits
mailing list