Skip to content

Commit 725275c

Browse files
committed
Re-added connect from Ellipsoid checkbox
1 parent b72ddca commit 725275c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/qgsmeasuredialog.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ QgsMeasureDialog::QgsMeasureDialog( QgsMeasureTool* tool, Qt::WFlags f )
5757
else
5858
mcbProjectionEnabled->setCheckState( Qt::Unchecked );
5959

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

300303
void QgsMeasureDialog::changeProjectionEnabledState()
301304
{
302-
QgsDebugMsg( "Entering!" );
303305
// store value
304306
QSettings settings;
305307
if ( mcbProjectionEnabled->isChecked() )
@@ -360,7 +362,6 @@ void QgsMeasureDialog::changeProjectionEnabledState()
360362
b = false;
361363
}
362364
}
363-
QgsDebugMsg( "Exiting!" );
364365
}
365366

366367
void QgsMeasureDialog::configureDistanceArea()

0 commit comments

Comments
 (0)