Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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@13961 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed Jul 25, 2010
1 parent 71deac5 commit cd1cd21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/georeferencer/qgsgeorefplugingui.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit cd1cd21

Please sign in to comment.