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/qgis@8294 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 28, 2008
1 parent 1e3cdb1 commit de07d465ff56d120e7b8f0e440e58325b9129fc7
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 de07d46

Please sign in to comment.