[mapserver-commits] r7837 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Jul 30 10:17:07 EDT 2008


Author: tbonfort
Date: 2008-07-30 10:17:07 -0400 (Wed, 30 Jul 2008)
New Revision: 7837

Modified:
   trunk/mapserver/mapogr.cpp
Log:
check for gdal version >=1.4 before using label shadowcolor



Modified: trunk/mapserver/mapogr.cpp
===================================================================
--- trunk/mapserver/mapogr.cpp	2008-07-30 14:05:53 UTC (rev 7836)
+++ trunk/mapserver/mapogr.cpp	2008-07-30 14:17:07 UTC (rev 7837)
@@ -2346,13 +2346,13 @@
               {
                   MS_INIT_COLOR(c->label.backgroundcolor, r, g, b);
               }
-
+#if GDAL_VERSION_NUM >= 1400
               pszColor = poLabelStyle->ShadowColor(bIsNull);
               if (!bIsNull && poLabelStyle->GetRGBFromString(pszColor,r,g,b,t))
               {
                   MS_INIT_COLOR(c->label.shadowcolor, r, g, b);
               }
-              
+#endif
               // Label font... do our best to use TrueType fonts, otherwise
               // fallback on bitmap fonts.
 #if defined(USE_GD_TTF) || defined (USE_GD_FT)



More information about the mapserver-commits mailing list