Skip to content

Commit

Permalink
final? commit for #3983
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 19, 2012
1 parent 8f8f106 commit 91cafd7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mapogr.cpp
Expand Up @@ -2451,10 +2451,7 @@ static int msOGRUpdateStyle(OGRStyleMgrH hStyleMgr, mapObj *map, layerObj *layer
const char *labelTextString = OGR_ST_GetParamStr(hLabelStyle,
OGRSTLabelTextString,
&bIsNull);
char *escapedTextString = msStringEscape((char*)labelTextString);
msLoadExpressionString(&(c->text),
(char*)CPLSPrintf("\"%s\"", escapedTextString));
if(escapedTextString != labelTextString) free(escapedTextString);
msLoadExpressionString(&(c->text),(char*)labelTextString);

if (c->numlabels == 0) {
/* allocate a new label object */
Expand Down

0 comments on commit 91cafd7

Please sign in to comment.