Skip to content
Permalink
Browse files

Don't try to render empty image paths for raster image marker

  • Loading branch information
nyalldawson committed Dec 5, 2018
1 parent 3136885 commit e6bbcbb4558cc379ef2e54bcb6717e996ab1092a
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/symbology/qgsmarkersymbollayer.cpp
@@ -2676,8 +2676,6 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
return;
}

p->save();

QString path = mPath;
if ( mDataDefinedProperties.isActive( QgsSymbolLayer::PropertyName ) )
{
@@ -2693,6 +2691,11 @@ void QgsRasterMarkerSymbolLayer::renderPoint( QPointF point, QgsSymbolRenderCont
}
}

if ( path.isEmpty() )
return;

p->save();

QPointF outputOffset;
double angle = 0.0;
calculateOffsetAndRotation( context, scaledSize, scaledSize * ( height / width ), outputOffset, angle );

0 comments on commit e6bbcbb

Please sign in to comment.
You can’t perform that action at this time.