[mapserver-commits] r13074 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Feb 6 17:39:30 EST 2012


Author: tbonfort
Date: 2012-02-06 14:39:30 -0800 (Mon, 06 Feb 2012)
New Revision: 13074

Modified:
   trunk/mapserver/maplabel.c
Log:
fix a bug with wrong alignment calculation for 0 sized fonts (#4090)


Modified: trunk/mapserver/maplabel.c
===================================================================
--- trunk/mapserver/maplabel.c	2012-02-06 22:06:14 UTC (rev 13073)
+++ trunk/mapserver/maplabel.c	2012-02-06 22:39:30 UTC (rev 13074)
@@ -210,6 +210,7 @@
     } else {
         spacewidth = label->space_size_10 * (double)label->size/10.0;
     }
+    spacewidth = MS_MAX(1,spacewidth);
    
     
     /*length in pixels of each line*/



More information about the mapserver-commits mailing list