Skip to content

Commit 3bfe932

Browse files
author
mmassing
committed
Print units of residual as well.
git-svn-id: http://svn.osgeo.org/qgis/trunk@13553 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4d46f19 commit 3bfe932

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎src/plugins/georeferencer/qgsgcplistmodel.cpp‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,9 @@ void QgsGCPListModel::updateModel()
112112

113113
// // Setup table header
114114
QStringList itemLabels;
115-
if ( wldTransform )
116-
{
117-
itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + tr( "map units" ) + "]" << QString( "dY[" ) + tr( "map units" ) + "]" << "residual";
118-
}
119-
else
120-
{
121-
itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + tr( "pixels" ) + "]" << QString( "dY[" ) + tr( "pixels" ) + "]" << "residual";
122-
}
115+
QString unitType = wldTransform ? tr( "map units" ) : tr ("pixels");
116+
itemLabels << "on/off" << "id" << "srcX" << "srcY" << "dstX" << "dstY" << QString( "dX[" ) + unitType + "]" << QString( "dY[" ) + unitType + "]" << "residual[" + unitType + "]";
117+
123118
setHorizontalHeaderLabels( itemLabels );
124119
setRowCount( mGCPList->size() );
125120

0 commit comments

Comments
 (0)