Skip to content
Permalink
Browse files

More LongLong fixes

Fix #9761
  • Loading branch information
m-kuhn committed Mar 11, 2014
1 parent efabcdf commit b02ad1e7d95fe891cc8e2cb9b2a0e3eebe71a9b8
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/gui/qgsattributedialog.cpp
  2. +1 −1 src/gui/qgsattributeeditor.cpp
@@ -405,6 +405,7 @@ void QgsAttributeDialog::init()
{
case QVariant::Invalid: text = "NULL"; break;
case QVariant::Int: text = QString::number( value.toInt() ); break;
case QVariant::LongLong: text = QString::number( value.toLongLong() ); break;
case QVariant::Double: text = QString::number( value.toDouble() ); break;
case QVariant::String:
default: text = value.toString();
@@ -1207,7 +1207,7 @@ bool QgsAttributeEditor::setValue( QWidget *editor, QgsVectorLayer *vl, int idx,
case QgsVectorLayer::SliderRange:
case QgsVectorLayer::EditRange:
{
if ( myFieldType == QVariant::Int )
if ( myFieldType == QVariant::Int || myFieldType == QVariant::LongLong )
{
if ( editType == QgsVectorLayer::EditRange )
{

0 comments on commit b02ad1e

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