Skip to content
Permalink
Browse files

attribute editor: return NULL QVariant instead of invalid QVariant

  • Loading branch information
m-kuhn committed Jun 16, 2013
1 parent f6ae6c4 commit c7a5e0f763f6cf6383c78b2e92f56f1f9c053094
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsattributeeditor.cpp
@@ -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;

0 comments on commit c7a5e0f

Please sign in to comment.
You can’t perform that action at this time.