Skip to content
Permalink
Browse files

Limit resolution of symbol fills during composer previews to improve …

…composer responsiveness
  • Loading branch information
nyalldawson committed Mar 21, 2014
1 parent 3c7732c commit 375e0d40ed1537bcef7687e999014a99a1937b55
Showing with 6 additions and 2 deletions.
  1. +3 −1 src/core/composer/qgscomposershape.cpp
  2. +3 −1 src/core/composer/qgspaperitem.cpp
@@ -147,7 +147,9 @@ void QgsComposerShape::drawShapeUsingSymbol( QPainter* p )
context.setScaleFactor( 1.0 );
if ( mComposition->plotStyle() == QgsComposition::Preview )
{
context.setRasterScaleFactor( horizontalViewScaleFactor() );
//Limit resolution of symbol fill if composition is not being exported
//otherwise zooming into composition slows down renders
context.setRasterScaleFactor( qMin( horizontalViewScaleFactor(), 3.0 ) );
}
else
{
@@ -158,7 +158,9 @@ void QgsPaperItem::paint( QPainter* painter, const QStyleOptionGraphicsItem* ite
context.setScaleFactor( 1.0 );
if ( mComposition->plotStyle() == QgsComposition::Preview )
{
context.setRasterScaleFactor( horizontalViewScaleFactor() );
//Limit resolution of symbol fill if composition is not being exported
//otherwise zooming into composition slows down renders
context.setRasterScaleFactor( qMin( horizontalViewScaleFactor(), 3.0 ) );
}
else
{

0 comments on commit 375e0d4

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