mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
attribute editor: return NULL QVariant instead of invalid QVariant
This commit is contained in:
parent
f6ae6c48b3
commit
c7a5e0f763
@ -1119,7 +1119,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
|
||||
default: //string
|
||||
modified = true;
|
||||
if ( text.isNull() )
|
||||
value = QVariant();
|
||||
value = QVariant( theField.type() );
|
||||
else
|
||||
value = QVariant( text );
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user