[mapserver-commits] r7175 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Dec 16 05:53:41 EST 2007


Author: unicoletti
Date: 2007-12-16 05:53:41 -0500 (Sun, 16 Dec 2007)
New Revision: 7175

Modified:
   trunk/mapserver/layerobject.c
Log:
Inserting a class did not set the class->layer pointer; issue: #2441


Modified: trunk/mapserver/layerobject.c
===================================================================
--- trunk/mapserver/layerobject.c	2007-12-14 19:43:55 UTC (rev 7174)
+++ trunk/mapserver/layerobject.c	2007-12-16 10:53:41 UTC (rev 7175)
@@ -69,6 +69,8 @@
 #else
         layer->_class[layer->numclasses]=classobj;
 #endif
+	/* set parent pointer */
+	classobj->layer=layer;
 	MS_REFCNT_INCR(classobj);
         layer->numclasses++;
         return layer->numclasses-1;
@@ -88,6 +90,8 @@
         layer->_class[nIndex]=classobj;
 #endif
 
+	/* set parent pointer */
+	classobj->layer=layer;
 	MS_REFCNT_INCR(classobj);
         /* increment number of classes and return */
         layer->numclasses++;



More information about the mapserver-commits mailing list