Skip to content
Permalink
Browse files
fix windows build
git-svn-id: http://svn.osgeo.org/qgis/trunk@14121 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 22, 2010
1 parent d79194e commit b56a0e373f348d999262f4d8d427b945e6df2f68
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/mapserver/qgssldparser.cpp
@@ -1252,7 +1252,7 @@ QgsVectorLayer* QgsSLDParser::contourLayerFromRaster( const QDomElement& userSty
offset = contourSymbolizerElem.attribute( "offset" ).toDouble();
propertyName = contourSymbolizerElem.attribute( "propertyName" );

if ( !equidistance > 0.0 )
if ( equidistance <= 0.0 )
{
return 0;
}
@@ -1301,7 +1301,7 @@ QgsVectorLayer* QgsSLDParser::contourLayerFromRaster( const QDomElement& userSty
}
}

double adfFixedLevels[numberOfLevels];
double *adfFixedLevels = new double[numberOfLevels];
int nFixedLevelCount = numberOfLevels;
currentLevel = ( int )(( minValue - offset ) / equidistance + 0.5 ) * equidistance + offset;
for ( int i = 0; i < numberOfLevels; ++i )
@@ -1391,6 +1391,8 @@ QgsVectorLayer* QgsSLDParser::contourLayerFromRaster( const QDomElement& userSty
hLayer, 0, nElevField,
GDALTermProgress, NULL );

delete adfFixedLevels;

OGR_DS_Destroy( hDS );
GDALClose( hSrcDS );

0 comments on commit b56a0e3

Please sign in to comment.