Skip to content

Commit

Permalink
Force vector output for preview icon so it avoids cached pixmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 1, 2014
1 parent 9464698 commit 4d0c043
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgssymbolv2.cpp
Expand Up @@ -286,6 +286,7 @@ QColor QgsSymbolV2::color() const
void QgsSymbolV2::drawPreviewIcon( QPainter* painter, QSize size )
{
QgsRenderContext context = QgsSymbolLayerV2Utils::createRenderContext( painter );
context.setForceVectorOutput( true );
QgsSymbolV2RenderContext symbolContext( context, outputUnit(), mAlpha, false, mRenderHints, 0, 0, mapUnitScale() );

for ( QgsSymbolLayerV2List::iterator it = mLayers.begin(); it != mLayers.end(); ++it )
Expand Down

0 comments on commit 4d0c043

Please sign in to comment.