Skip to content
Permalink
Browse files

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
  • Loading branch information
mmassing
mmassing committed Feb 15, 2010
1 parent 4a6791e commit 74997f85affe43f61c5b4d4fbd8673812ad55b0f
Showing with 14 additions and 4 deletions.
  1. +14 −4 src/plugins/georeferencer/qgsgeorefplugingui.cpp
@@ -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);
}
}
}

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

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

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

0 comments on commit 74997f8

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