[mapserver-commits] r11423 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Mar 31 08:45:03 EDT 2011


Author: tbonfort
Date: 2011-03-31 05:45:03 -0700 (Thu, 31 Mar 2011)
New Revision: 11423

Modified:
   trunk/mapserver/mapdraw.c
Log:
Fix potential problem with undefined scalefactor alongside bitmap text


Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c	2011-03-31 12:33:14 UTC (rev 11422)
+++ trunk/mapserver/mapdraw.c	2011-03-31 12:45:03 UTC (rev 11423)
@@ -2424,6 +2424,7 @@
               scalefactor = size / labelPtr->size;
             } else {
               size = labelPtr->size;
+              scalefactor = 1;
             }
             if(msGetLabelSize(map,labelPtr,cachePtr->text,size,&r,NULL) != MS_SUCCESS)
               return MS_FAILURE;



More information about the mapserver-commits mailing list