Skip to content
Permalink
Browse files

Remove redundant brush transform -- this is already handled regardles…

…s of the RenderMapTile flag
  • Loading branch information
nyalldawson committed Feb 12, 2021
1 parent f75c53b commit cc208f4d67a9b425cfd738939c7b4dfe0f45d38e
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/core/symbology/qgsfillsymbollayer.cpp
@@ -1693,14 +1693,6 @@ void QgsImageFillSymbolLayer::renderPolygon( const QPolygonF &points, const QVec
t.translate( leftCorner.x(), leftCorner.y() );
mBrush.setTransform( t );
}
else if ( context.renderContext().testFlag( QgsRenderContext::RenderMapTile ) )
{
//transform brush to upper left corner of geometry bbox
QPointF leftCorner = points.boundingRect().topLeft();
QTransform t = mBrush.transform();
t.translate( leftCorner.x(), leftCorner.y() );
mBrush.setTransform( t );
}

if ( context.selected() )
{

0 comments on commit cc208f4

Please sign in to comment.