[mapserver-commits] r10095 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Apr 10 22:32:22 EDT 2010


Author: warmerdam
Date: 2010-04-10 22:32:21 -0400 (Sat, 10 Apr 2010)
New Revision: 10095

Modified:
   trunk/mapserver/mapdraw.c
Log:
correct the changes done in r10094, grr

Modified: trunk/mapserver/mapdraw.c
===================================================================
--- trunk/mapserver/mapdraw.c	2010-04-11 02:24:13 UTC (rev 10094)
+++ trunk/mapserver/mapdraw.c	2010-04-11 02:32:21 UTC (rev 10095)
@@ -502,9 +502,11 @@
 
   if(map->legend.status == MS_EMBED && !map->legend.postlabelcache)
   {
-      msEmbedLegend(map, image);
-      msFreeImage( image );
-      return NULL;
+      if( msEmbedLegend(map, image) == -1 )
+      {
+          msFreeImage( image );
+          return NULL;
+      }
   }
 
   if(map->debug >= MS_DEBUGLEVEL_TUNING) msGettimeofday(&starttime, NULL);



More information about the mapserver-commits mailing list