Skip to content

Commit cd1cd21

Browse files
author
mmassing
committed
Fix a bug where user was not prompted whether to save or discard modified 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
1 parent 71deac5 commit cd1cd21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/plugins/georeferencer/qgsgeorefplugingui.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,15 +1857,15 @@ bool QgsGeorefPluginGui::equalGCPlists( const QgsGCPList &list1, const QgsGCPLis
18571857

18581858
int count = list1.count();
18591859
int j = 0;
1860-
for ( int i = 0; i < count; ++i )
1860+
for ( int i = 0; i < count; ++i, ++j )
18611861
{
18621862
QgsGeorefDataPoint *p1 = list1.at( i );
18631863
QgsGeorefDataPoint *p2 = list2.at( j );
1864-
qDebug() << "p1" << "pix" << p1->pixelCoords().toString() << "map" << p1->mapCoords().toString();
1865-
qDebug() << "p2" << "pix" << p2->pixelCoords().toString() << "map" << p2->mapCoords().toString();
1864+
if ( p1->pixelCoords() != p2->pixelCoords() )
1865+
return false;
1866+
18661867
if ( p1->mapCoords() != p2->mapCoords() )
18671868
return false;
1868-
++j;
18691869
}
18701870

18711871
return true;

0 commit comments

Comments
 (0)