Skip to content

Commit 74997f8

Browse files
author
mmassing
committedFeb 15, 2010
Fix #2443 - georeferencer switches 'link georeferencer to QGIS' and 'link QGIS to georeferencer' labels.
git-svn-id: http://svn.osgeo.org/qgis/trunk@12947 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4a6791e commit 74997f8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed
 

‎src/plugins/georeferencer/qgsgeorefplugingui.cpp

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -364,25 +364,35 @@ void QgsGeorefPluginGui::zoomToNext()
364364
mCanvas->zoomToNextExtent();
365365
}
366366

367-
void QgsGeorefPluginGui::linkGeorefToQGis( bool link )
367+
void QgsGeorefPluginGui::linkQGisToGeoref( bool link )
368368
{
369369
if ( link )
370370
{
371371
if (QgsGeorefTransform::InvalidTransform != mTransformParam)
372+
{
373+
// Indicate that georeferencer canvas extent has changed
372374
extentsChangedGeorefCanvas();
375+
}
373376
else
377+
{
374378
mActionLinkGeorefToQGis->setEnabled(false);
379+
}
375380
}
376381
}
377382

378-
void QgsGeorefPluginGui::linkQGisToGeoref( bool link )
383+
void QgsGeorefPluginGui::linkGeorefToQGis( bool link )
379384
{
380385
if ( link )
381386
{
382387
if (QgsGeorefTransform::InvalidTransform != mTransformParam)
388+
{
389+
// Indicate that qgis main canvas extent has changed
383390
extentsChangedQGisCanvas();
391+
}
384392
else
393+
{
385394
mActionLinkQGisToGeoref->setEnabled(false);
395+
}
386396
}
387397
}
388398

@@ -565,7 +575,7 @@ void QgsGeorefPluginGui::extentsChangedGeorefCanvas()
565575
return;
566576
}
567577

568-
if (mActionLinkGeorefToQGis->isChecked())
578+
if (mActionLinkQGisToGeoref->isChecked())
569579
{
570580
if (!updateGeorefTransform())
571581
{
@@ -593,7 +603,7 @@ void QgsGeorefPluginGui::extentsChangedQGisCanvas()
593603
return;
594604
}
595605

596-
if (mActionLinkQGisToGeoref->isChecked())
606+
if (mActionLinkGeorefToQGis->isChecked())
597607
{
598608
// Update transform if necessary
599609
if (!updateGeorefTransform())

0 commit comments

Comments
 (0)
Please sign in to comment.