Permalink
Browse files

solved symbol size trunc bug thanks to tbonfort

  • Loading branch information...
1 parent 6e52ac0 commit cc62353d3c446a18e1a69d684feea1745ab34b69 @luipir luipir committed Jul 10, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 mapogcsld.c
View
@@ -613,20 +613,20 @@ layerObj *msSLDParseSLD(mapObj *map, char *psSLDXML, int *pnLayers)
}
-int _msSLDParseSizeParameter(CPLXMLNode *psSize)
+double _msSLDParseSizeParameter(CPLXMLNode *psSize)
{
- int nSize = 0;
+ double dSize = 0;
CPLXMLNode *psLiteral = NULL;
if (psSize) {
psLiteral = CPLGetXMLNode(psSize, "Literal");
if (psLiteral && psLiteral->psChild && psLiteral->psChild->pszValue)
- nSize = atof(psLiteral->psChild->pszValue);
+ dSize = atof(psLiteral->psChild->pszValue);
else if (psSize->psChild && psSize->psChild->pszValue)
- nSize = atof(psSize->psChild->pszValue);
+ dSize = atof(psSize->psChild->pszValue);
}
- return nSize;
+ return dSize;
}
/************************************************************************/

0 comments on commit cc62353

Please sign in to comment.