Skip to content

Commit adecbee

Browse files
author
jef
committed
fix typo
git-svn-id: http://svn.osgeo.org/qgis/trunk@14016 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3c2bdb2 commit adecbee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/plugins/georeferencer/qgsgcplistmodel.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,19 @@ class QgsStandardItem : public QStandardItem
3030
QgsStandardItem( QString text ) : QStandardItem( text )
3131
{
3232
// In addition to the DisplayRole, also set the user role, which is used for sorting.
33+
// This is needed for numerical sorting to work correctly (otherwise sorting is lexicographic).
3334
setData( QVariant( text ), Qt::UserRole );
3435
setTextAlignment( Qt::AlignRight );
3536
}
3637

3738
QgsStandardItem( int value ) : QStandardItem( QString::number( value ) )
3839
{
39-
// In addition to the DisplayRole, also set the user role, which is used for sorting.
40-
// This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
4140
setData( QVariant( value ), Qt::UserRole );
4241
setTextAlignment( Qt::AlignCenter );
4342
}
4443

4544
QgsStandardItem( double value ) : QStandardItem( QString::number( value, 'f', 2 ) )
4645
{
47-
// In addition to the DisplayRole, also set the user role, which is used for sorting.
48-
// This is needed for numerical sorting to work corretly (otherwise sorting is lexicographic).
4946
setData( QVariant( value ), Qt::UserRole );
5047
setTextAlignment( Qt::AlignRight );
5148
}

0 commit comments

Comments
 (0)