[mapserver-commits] r9113 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Fri Jun 19 10:00:59 EDT 2009


Author: assefa
Date: 2009-06-19 10:00:59 -0400 (Fri, 19 Jun 2009)
New Revision: 9113

Modified:
   trunk/mapserver/mapfile.c
Log:
Save ALIGN parameter if it is set to CENTER or RIGHT (#3057)

Modified: trunk/mapserver/mapfile.c
===================================================================
--- trunk/mapserver/mapfile.c	2009-06-19 13:59:45 UTC (rev 9112)
+++ trunk/mapserver/mapfile.c	2009-06-19 14:00:59 UTC (rev 9113)
@@ -1661,6 +1661,10 @@
   if(label->shadowsizex != 1 && label->shadowsizey != 1) fprintf(stream, "  %sSHADOWSIZE %d %d\n", tab, label->shadowsizex, label->shadowsizey);
   if(label->wrap) fprintf(stream, "  %sWRAP '%c'\n", tab, label->wrap);
   if(label->maxlength>0) fprintf(stream, "  %sMAXLENGTH %d\n", tab, label->maxlength);
+  if (label->align == MS_ALIGN_CENTER)
+    fprintf(stream, "  %sALIGN CENTER\n", tab);
+  else if (label->align == MS_ALIGN_RIGHT)
+    fprintf(stream, "  %sALIGN RIGHT\n", tab);
   fprintf(stream, "%sEND\n", tab);  
 }
 



More information about the mapserver-commits mailing list