Skip to content

Commit

Permalink
Fix disconnected fill outlines in preview icons when outline
Browse files Browse the repository at this point in the history
has a line offset set
  • Loading branch information
nyalldawson committed Oct 1, 2018
1 parent f7c29d7 commit 2b1cbf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/symbology/qgssymbol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ void QgsSymbol::drawPreviewIcon( QPainter *painter, QSize size, QgsRenderContext
QgsRenderContext context = customContext ? *customContext : QgsRenderContext::fromQPainter( painter );
context.setForceVectorOutput( true );
QgsSymbolRenderContext symbolContext( context, outputUnit(), mOpacity, false, mRenderHints, nullptr, QgsFields(), mapUnitScale() );
symbolContext.setOriginalGeometryType( mType == Fill ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::UnknownGeometry );

Q_FOREACH ( QgsSymbolLayer *layer, mLayers )
{
Expand Down

0 comments on commit 2b1cbf4

Please sign in to comment.