[QGIS Commit] r15057 - trunk/qgis/src/gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Jan 19 09:25:52 EST 2011


Author: jef
Date: 2011-01-19 06:25:52 -0800 (Wed, 19 Jan 2011)
New Revision: 15057

Modified:
   trunk/qgis/src/gui/qgsattributeeditor.cpp
Log:
fix NULL support in attribute editor

Modified: trunk/qgis/src/gui/qgsattributeeditor.cpp
===================================================================
--- trunk/qgis/src/gui/qgsattributeeditor.cpp	2011-01-18 18:37:37 UTC (rev 15056)
+++ trunk/qgis/src/gui/qgsattributeeditor.cpp	2011-01-19 14:25:52 UTC (rev 15057)
@@ -558,7 +558,7 @@
       }
       else if ( modified )
       {
-        value = QVariant( theField.type() );
+        value = QVariant();
       }
     }
     break;
@@ -573,7 +573,7 @@
       }
       else if ( modified )
       {
-        value = QVariant( theField.type() );
+        value = QVariant();
       }
     }
     case QVariant::Double:
@@ -587,7 +587,7 @@
       }
       else if ( modified )
       {
-        value = QVariant( theField.type() );
+        value = QVariant();
       }
     }
     break;
@@ -601,7 +601,7 @@
       }
       else if ( modified )
       {
-        value = QVariant( theField.type() );
+        value = QVariant();
       }
     }
     break;



More information about the QGIS-commit mailing list