We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096808e commit 5cba125Copy full SHA for 5cba125
src/providers/ogr/qgsogrprovider.cpp
@@ -413,8 +413,18 @@ void QgsOgrProvider::loadFields()
413
414
mAttributeFields.insert(
415
i, QgsField(
416
- mEncoding->toUnicode( OGR_Fld_GetNameRef( fldDef ) ), varType,
417
- mEncoding->toUnicode( OGR_GetFieldTypeName( ogrType ) ),
+ //TODO: fix this hack
+ #ifdef ANDROID
418
+ OGR_Fld_GetNameRef( fldDef ),
419
+ #else
420
+ mEncoding->toUnicode( OGR_Fld_GetNameRef( fldDef ) ),
421
+ #endif
422
+ varType,
423
424
+ OGR_GetFieldTypeName( ogrType ),
425
426
+ mEncoding->toUnicode( OGR_GetFieldTypeName( ogrType ) ),
427
428
OGR_Fld_GetWidth( fldDef ),
429
OGR_Fld_GetPrecision( fldDef ) ) );
430
}
0 commit comments