Skip to content
Permalink
Browse files

Make modifications through the style dock much faster

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 736b2da commit a3331f1385107bc143b756853eb028cb98b75e4e
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgslayerstylingwidget.cpp
@@ -262,8 +262,7 @@ void QgsLayerStylingWidget::apply()
{
emit styleChanged( mCurrentLayer );
QgsProject::instance()->setDirty( true );
mMapCanvas->clearCache();
mMapCanvas->refresh();
mCurrentLayer->triggerRepaint();
}
connect( mCurrentLayer, SIGNAL( styleChanged() ), this, SLOT( updateCurrentWidgetLayer() ) );
}

0 comments on commit a3331f1

Please sign in to comment.
You can’t perform that action at this time.