Skip to content

Commit

Permalink
attribute editor: return NULL QVariant instead of invalid QVariant
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 16, 2013
1 parent f6ae6c4 commit c7a5e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsattributeeditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c7a5e0f

Please sign in to comment.