Permalink
Browse files

Modify msStyleSetGeomTransform to allow removing the transformation (#…

  • Loading branch information...
1 parent b240378 commit 62952598488293d6393a5f48e8953813a1a01263 @szekerest szekerest committed Feb 3, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 mapgeomtransform.c
View
@@ -35,6 +35,11 @@ extern int yyparse(parseObj *p);
void msStyleSetGeomTransform(styleObj *s, char *transform)
{
msFree(s->_geomtransform.string);
+ if (!transform) {
+ s->_geomtransform.type = MS_GEOMTRANSFORM_NONE;
+ s->_geomtransform.string = NULL;
+ return;
+ }
s->_geomtransform.string = msStrdup(transform);
if(!strncasecmp("start",transform,5)) {
s->_geomtransform.type = MS_GEOMTRANSFORM_START;

0 comments on commit 6295259

Please sign in to comment.