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 Dec 17, 2013
1 parent aa2d3bc commit fec6baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
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 fec6baf

Please sign in to comment.