Skip to content
Permalink
Browse files
fix #962: the image of the previously rendered feature was used inste…
…ad of an empty one.

git-svn-id: http://svn.osgeo.org/qgis/trunk@8294 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 28, 2008
1 parent a08e4de commit 90e8d1eb5bcb12b8b647e6a9534a51097200da4e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/renderer/qgscontinuouscolorrenderer.cpp
@@ -80,7 +80,11 @@ void QgsContinuousColorRenderer::renderFeature(QPainter * p, QgsFeature & f, QIm
//first find out the value for the classification attribute
const QgsAttributeMap& attrs = f.attributeMap();
if( attrs[mClassificationField].isNull() )
{
if(img)
*img = QImage();
return;
}
double fvalue = attrs[mClassificationField].toDouble();

//double fvalue = vec[mClassificationField].fieldValue().toDouble();

0 comments on commit 90e8d1e

Please sign in to comment.