Skip to content

Commit e6bbcbb

Browse files
committedDec 5, 2018
Don't try to render empty image paths for raster image marker
1 parent 3136885 commit e6bbcbb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/core/symbology/qgsmarkersymbollayer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2676,8 +2676,6 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
26762676
return;
26772677
}
26782678

2679-
p->save();
2680-
26812679
QString path = mPath;
26822680
if ( mDataDefinedProperties.isActive( QgsSymbolLayer::PropertyName ) )
26832681
{
@@ -2693,6 +2691,11 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
26932691
}
26942692
}
26952693

2694+
if ( path.isEmpty() )
2695+
return;
2696+
2697+
p->save();
2698+
26962699
QPointF outputOffset;
26972700
double angle = 0.0;
26982701
calculateOffsetAndRotation( context, scaledSize, scaledSize * ( height / width ), outputOffset, angle );

0 commit comments

Comments
 (0)
Please sign in to comment.