Skip to content

Commit

Permalink
Fix #2443 - georeferencer switches 'link georeferencer to QGIS' and '…
Browse files Browse the repository at this point in the history
…link QGIS to georeferencer' labels.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12947 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed Feb 15, 2010
1 parent 26cdbc8 commit beec65a
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -364,25 +364,35 @@ void QgsGeorefPluginGui::zoomToNext()
mCanvas->zoomToNextExtent();
}

void QgsGeorefPluginGui::linkGeorefToQGis( bool link )
void QgsGeorefPluginGui::linkQGisToGeoref( bool link )
{
if ( link )
{
if (QgsGeorefTransform::InvalidTransform != mTransformParam)
{
// Indicate that georeferencer canvas extent has changed
extentsChangedGeorefCanvas();
}
else
{
mActionLinkGeorefToQGis->setEnabled(false);
}
}
}

void QgsGeorefPluginGui::linkQGisToGeoref( bool link )
void QgsGeorefPluginGui::linkGeorefToQGis( bool link )
{
if ( link )
{
if (QgsGeorefTransform::InvalidTransform != mTransformParam)
{
// Indicate that qgis main canvas extent has changed
extentsChangedQGisCanvas();
}
else
{
mActionLinkQGisToGeoref->setEnabled(false);
}
}
}

Expand Down Expand Up @@ -565,7 +575,7 @@ void QgsGeorefPluginGui::extentsChangedGeorefCanvas()
return;
}

if (mActionLinkGeorefToQGis->isChecked())
if (mActionLinkQGisToGeoref->isChecked())
{
if (!updateGeorefTransform())
{
Expand Down Expand Up @@ -593,7 +603,7 @@ void QgsGeorefPluginGui::extentsChangedQGisCanvas()
return;
}

if (mActionLinkQGisToGeoref->isChecked())
if (mActionLinkGeorefToQGis->isChecked())
{
// Update transform if necessary
if (!updateGeorefTransform())
Expand Down

0 comments on commit beec65a

Please sign in to comment.