Skip to content
Permalink
Browse files

Force vector output for preview icon so it avoids cached pixmaps

  • Loading branch information
wonder-sk committed Sep 1, 2014
1 parent 9464698 commit 4d0c04325bd8eb6c88564dd39fedeefc7c3b70f9
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/core/symbology-ng/qgssymbolv2.cpp
@@ -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 )

0 comments on commit 4d0c043

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