Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-added connect from Ellipsoid checkbox
  • Loading branch information
homann committed Aug 25, 2012
1 parent b72ddca commit 725275c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/qgsmeasuredialog.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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() )
Expand Down Expand Up @@ -360,7 +362,6 @@ void QgsMeasureDialog::changeProjectionEnabledState()
b = false;
}
}
QgsDebugMsg( "Exiting!" );
}

void QgsMeasureDialog::configureDistanceArea()
Expand Down

0 comments on commit 725275c

Please sign in to comment.