Skip to content

Commit

Permalink
fix #962: the image of the previously rendered feature was used inste…
Browse files Browse the repository at this point in the history
…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 de07d46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/renderer/qgscontinuouscolorrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit de07d46

Please sign in to comment.