Skip to content
Permalink
Browse files
Fix double redraw after applying vector properties
  • Loading branch information
mhugent committed Feb 5, 2013
1 parent 18cd145 commit 89bdb10e442ebe46193559cd09dd5f75a56ed02e
Showing with 11 additions and 3 deletions.
  1. +7 −2 src/app/qgslabelinggui.cpp
  2. +1 −0 src/app/qgslabelinggui.h
  3. +3 −1 src/app/qgsvectorlayerproperties.cpp
@@ -359,15 +359,20 @@ void QgsLabelingGui::collapseSample( QgsCollapsibleGroupBox* grpbx )

void QgsLabelingGui::apply()
{
QgsPalLayerSettings settings = layerSettings();
settings.writeToLayer( mLayer );
writeSettingsToLayer();
// trigger refresh
if ( mMapCanvas )
{
mMapCanvas->refresh();
}
}

void QgsLabelingGui::writeSettingsToLayer()
{
QgsPalLayerSettings settings = layerSettings();
settings.writeToLayer( mLayer );
}

QgsPalLayerSettings QgsLabelingGui::layerSettings()
{
QgsPalLayerSettings lyr;
@@ -37,6 +37,7 @@ class QgsLabelingGui : public QWidget, private Ui::QgsLabelingGuiBase
~QgsLabelingGui();

QgsPalLayerSettings layerSettings();
void writeSettingsToLayer();

public slots:
void collapseSample( QgsCollapsibleGroupBox* grpbx );
@@ -425,7 +425,9 @@ void QgsVectorLayerProperties::reset( void )
void QgsVectorLayerProperties::apply()
{
if ( labelingDialog )
labelingDialog->apply();
{
labelingDialog->writeSettingsToLayer();
}

//
// Set up sql subset query if applicable

0 comments on commit 89bdb10

Please sign in to comment.