mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Limit resolution of symbol fills during composer previews to improve composer responsiveness
This commit is contained in:
parent
3c7732c86a
commit
375e0d40ed
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user