mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
fromLocal8Bit for attributes
git-svn-id: http://svn.osgeo.org/qgis/trunk@3057 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
466b7bf801
commit
28beb3af47
@ -179,7 +179,10 @@ void QgsGrassAttributes::addAttribute ( int tab, const QString &name, const QStr
|
||||
|
||||
int row = tb->numRows()-1;
|
||||
tb->setText ( row, 0, name );
|
||||
tb->setText ( row, 1, value );
|
||||
|
||||
// I have no rational explanation why fromLocal8Bit is necessary, value should be in unicode
|
||||
// because QgsGrassProvider::attributes is using mEncoding->toUnicode()
|
||||
tb->setText ( row, 1, QString::fromLocal8Bit(value) );
|
||||
tb->setText ( row, 2, type );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user