Skip to content

Commit

Permalink
Merge pull request #35810 from m-kuhn/backport-32250-to-release-3_12
Browse files Browse the repository at this point in the history
[Backport 3.12]  Value map: Sort order & CSV import
  • Loading branch information
m-kuhn committed Apr 16, 2020
2 parents b364bd6 + daf0ef8 commit 8b272ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
Expand Up @@ -179,6 +179,7 @@ void QgsValueMapConfigDlg::updateMap( const QList<QPair<QString, QVariant>> &lis
setRow( row, pair.first, QString() );
else
setRow( row, pair.first, pair.second.toString() );
++row;
}
}

Expand Down Expand Up @@ -320,8 +321,6 @@ void QgsValueMapConfigDlg::loadFromCSVButtonPushed()

QList<QPair<QString, QVariant>> map;

s.readLine();

while ( !s.atEnd() )
{
QString l = s.readLine().trimmed();
Expand Down

0 comments on commit 8b272ab

Please sign in to comment.