[mapserver-commits] r13187 - sandbox/tb-labels
svn at osgeo.org
svn at osgeo.org
Thu Mar 1 03:34:14 EST 2012
Author: tbonfort
Date: 2012-03-01 00:34:14 -0800 (Thu, 01 Mar 2012)
New Revision: 13187
Modified:
sandbox/tb-labels/mapogroutput.c
Log:
fix wrong usage of msShapeGetAnnotation
Modified: sandbox/tb-labels/mapogroutput.c
===================================================================
--- sandbox/tb-labels/mapogroutput.c 2012-02-29 20:56:49 UTC (rev 13186)
+++ sandbox/tb-labels/mapogroutput.c 2012-03-01 08:34:14 UTC (rev 13187)
@@ -870,7 +870,8 @@
&& layer->class[resultshape.classindex]->numlabels > 0
&& layer->class[resultshape.classindex]->labels[0]->size != -1 )
{
- resultshape.text = msShapeGetAnnotation(layer, &resultshape);
+ msShapeGetAnnotation(layer, &resultshape); /* TODO RFC77: check return value */
+ resultshape.text = msStrdup(layer->class[resultshape.classindex]->labels[0]->annotext);
}
/*
More information about the mapserver-commits
mailing list