Skip to content
Permalink
Browse files

Feature #8725: Increment 2x the factor in slider

  • Loading branch information
ahuarte47 committed Oct 26, 2013
1 parent 2c00524 commit 775a8e8a54e181106f89a7fc6a564b569d0fa725
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsvectorlayerproperties.cpp
@@ -394,7 +394,7 @@ void QgsVectorLayerProperties::syncToLayer( void )

// get simplify drawing configuration
mSimplifyDrawingGroupBox->setChecked( layer->simplifyDrawing() );
mSimplifyDrawingSlider->setValue( (int)(10.0f * (layer->simplifyDrawingTol()-1)) );
mSimplifyDrawingSlider->setValue( (int)(5.0f * (layer->simplifyDrawingTol()-1)) );

// load appropriate symbology page (V1 or V2)
updateSymbologyPage();
@@ -535,7 +535,7 @@ void QgsVectorLayerProperties::apply()

//layer simplify drawing configuration
layer->setSimplifyDrawing( mSimplifyDrawingGroupBox->isChecked() );
layer->setSimplifyDrawingTol( 1.0f + 0.1f*mSimplifyDrawingSlider->value() );
layer->setSimplifyDrawingTol( 1.0f + 0.2f*mSimplifyDrawingSlider->value() );

// update symbology
emit refreshLegend( layer->id(), QgsLegendItem::DontChange );

0 comments on commit 775a8e8

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