Skip to content
Permalink
Browse files

Merge pull request #215 from homann/small_fixes_1969_2850

Follow up commit for #1959 and #2850
  • Loading branch information
timlinux committed Aug 26, 2012
2 parents 31743cf + 725275c commit 1085443aceab87e24037888dd3f1b083c80c0984
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/qgsmeasuredialog.cpp
@@ -57,8 +57,11 @@ QgsMeasureDialog::QgsMeasureDialog( QgsMeasureTool* tool, Qt::WFlags f )
else
mcbProjectionEnabled->setCheckState( Qt::Unchecked );

// Update when the ellipsoidal button has changed state.
connect( mcbProjectionEnabled, SIGNAL( stateChanged( int ) ),
this, SLOT( changeProjectionEnabledState() ) );
// Update whenever the canvas has refreshed. Maybe more often than needed,
// but at least every time any settings changes
// but at least every time any settings changes
connect( mTool->canvas(), SIGNAL( mapCanvasRefreshed() ),
this, SLOT( changeProjectionEnabledState() ) );
// Update when project wide transformation has changed
@@ -299,7 +302,6 @@ void QgsMeasureDialog::convertMeasurement( double &measure, QGis::UnitType &u, b

void QgsMeasureDialog::changeProjectionEnabledState()
{
QgsDebugMsg( "Entering!" );
// store value
QSettings settings;
if ( mcbProjectionEnabled->isChecked() )
@@ -360,7 +362,6 @@ void QgsMeasureDialog::changeProjectionEnabledState()
b = false;
}
}
QgsDebugMsg( "Exiting!" );
}

void QgsMeasureDialog::configureDistanceArea()

0 comments on commit 1085443

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