Skip to content
Permalink
Browse files
fix windows build
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14121 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 22, 2010
1 parent 3895e04 commit ac43d5f63c7fa121c7d2db0b528ae75aaa39f7f7
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 ac43d5f

Please sign in to comment.