Skip to content
Permalink
Browse files
Fix a bug where user was not prompted whether to save or discard modi…
…fied GCPs.

Prompt-on-exit did not catch the case were only the source, but not
the destination coordinates of a GCP were modified.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13961 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed Jul 25, 2010
1 parent 0a10443 commit 82d17fed244acbde851bae2103461c8653e6e48b
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/plugins/georeferencer/qgsgeorefplugingui.cpp
@@ -1857,15 +1857,15 @@ bool QgsGeorefPluginGui::equalGCPlists( const QgsGCPList &list1, const QgsGCPLis

int count = list1.count();
int j = 0;
for ( int i = 0; i < count; ++i )
for ( int i = 0; i < count; ++i, ++j )
{
QgsGeorefDataPoint *p1 = list1.at( i );
QgsGeorefDataPoint *p2 = list2.at( j );
qDebug() << "p1" << "pix" << p1->pixelCoords().toString() << "map" << p1->mapCoords().toString();
qDebug() << "p2" << "pix" << p2->pixelCoords().toString() << "map" << p2->mapCoords().toString();
if ( p1->pixelCoords() != p2->pixelCoords() )
return false;

if ( p1->mapCoords() != p2->mapCoords() )
return false;
++j;
}

return true;

0 comments on commit 82d17fe

Please sign in to comment.