Skip to content

Commit

Permalink
Make modifications through the style dock much faster
Browse files Browse the repository at this point in the history
Before any change in the style dock would invalidate the cache
for ALL map layers, resulting in every layer being redrawn.

Now only the affected layer is redrawn and all others just use
the cached render.

(cherry-picked from c6436f8)
  • Loading branch information
nyalldawson committed Oct 6, 2016
1 parent 9e736d1 commit 6b9ea84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgslayerstylingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ void QgsLayerStylingWidget::apply()
{
emit styleChanged( mCurrentLayer );
QgsProject::instance()->setDirty( true );
mMapCanvas->clearCache();
mMapCanvas->refresh();
mCurrentLayer->triggerRepaint();
}
connect( mCurrentLayer, SIGNAL( styleChanged() ), this, SLOT( updateCurrentWidgetLayer() ) );
}
Expand Down

0 comments on commit 6b9ea84

Please sign in to comment.