Skip to content

Commit 2b71f62

Browse files
author
jef
committed
fix NULL support in attribute editor
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15057 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0c50887 commit 2b71f62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gui/qgsattributeeditor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
558558
}
559559
else if ( modified )
560560
{
561-
value = QVariant( theField.type() );
561+
value = QVariant();
562562
}
563563
}
564564
break;
@@ -573,7 +573,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
573573
}
574574
else if ( modified )
575575
{
576-
value = QVariant( theField.type() );
576+
value = QVariant();
577577
}
578578
}
579579
case QVariant::Double:
@@ -587,7 +587,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
587587
}
588588
else if ( modified )
589589
{
590-
value = QVariant( theField.type() );
590+
value = QVariant();
591591
}
592592
}
593593
break;
@@ -601,7 +601,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
601601
}
602602
else if ( modified )
603603
{
604-
value = QVariant( theField.type() );
604+
value = QVariant();
605605
}
606606
}
607607
break;

0 commit comments

Comments
 (0)