Skip to content

Commit

Permalink
Feature #8725: Disable simplify in editmode
Browse files Browse the repository at this point in the history
Disable the drawing simplification when the editmode is enabled, the
geometries are cached for snapping
  • Loading branch information
ahuarte47 committed Oct 28, 2013
1 parent 200ae38 commit 709781a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ bool QgsVectorLayer::draw( QgsRenderContext& rendererContext )
.setSubsetOfAttributes( attributes );

// Enable the simplification of the geometries before fetch the features using the current map2pixel context.
if ( mSimplifyDrawing && !(featureRequest.flags() & QgsFeatureRequest::NoGeometry) )
if ( mSimplifyDrawing && !mEditBuffer && !(featureRequest.flags() & QgsFeatureRequest::NoGeometry) )
{
QPainter* p = rendererContext.painter();
float dpi = ( p->device()->logicalDpiX() + p->device()->logicalDpiY() ) / 2;
Expand Down

0 comments on commit 709781a

Please sign in to comment.