Skip to content

Commit

Permalink
Simplify call
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Feb 9, 2022
1 parent d51b6bc commit 0f963ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/georeferencer/qgsgcplistmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ void QgsGCPListModel::updateModel()
if ( mGeorefTransform && bTransformUpdated && mGeorefTransform->parametersInitialized() )
{
QgsPointXY dst;
const QgsPointXY pixel = mGeorefTransform->hasExistingGeoreference() ? mGeorefTransform->toColumnLine( p->sourceCoords() ) : p->sourceCoords();
const QgsPointXY pixel = mGeorefTransform->toSourcePixel( p->sourceCoords() );
if ( unitType == tr( "pixels" ) )
{
// Transform from world to raster coordinate:
Expand Down

0 comments on commit 0f963ea

Please sign in to comment.