Skip to content

Commit 90e8d1e

Browse files
author
jef
committed
fix #962: the image of the previously rendered feature was used instead of an empty one.
git-svn-id: http://svn.osgeo.org/qgis/trunk@8294 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent a08e4de commit 90e8d1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/renderer/qgscontinuouscolorrenderer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,11 @@ void QgsContinuousColorRenderer::renderFeature(QPainter * p, QgsFeature & f, QIm
8080
//first find out the value for the classification attribute
8181
const QgsAttributeMap& attrs = f.attributeMap();
8282
if( attrs[mClassificationField].isNull() )
83+
{
84+
if(img)
85+
*img = QImage();
8386
return;
87+
}
8488
double fvalue = attrs[mClassificationField].toDouble();
8589

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

0 commit comments

Comments
 (0)