Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
attribute editor: return NULL QVariant instead of invalid QVariant
  • 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
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.