mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-11 00:04:27 -04:00
#8725: drawRect faster drawConvexPolygon
This commit is contained in:
parent
9e9a686f99
commit
d2d8e4f783
@ -334,8 +334,8 @@ void QgsFillSymbolLayerV2::_renderPolygon( QPainter* p, const QPolygonF& points,
|
||||
// Disable 'Antialiasing' if the geometry was generalized in the current RenderContext (We known that it must have least #5 points).
|
||||
if ( points.size()<=5 && context.layer() && context.layer()->simplifyDrawingCanbeApplied( QgsVectorLayer::AntialiasingSimplification ) && QgsFeatureRequest::canbeGeneralizedByWndBoundingBox( points, context.layer()->simplifyDrawingTol() ) && p->renderHints() & QPainter::Antialiasing )
|
||||
{
|
||||
p->setRenderHint( QPainter::Antialiasing, false );
|
||||
p->drawConvexPolygon( points );
|
||||
p->setRenderHint( QPainter::Antialiasing, false );
|
||||
p->drawRect( points.boundingRect() );
|
||||
p->setRenderHint( QPainter::Antialiasing, true );
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user