Skip to content

Commit b02ad1e

Browse files
committedMar 11, 2014
More LongLong fixes
Fix #9761
1 parent efabcdf commit b02ad1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎src/gui/qgsattributedialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ void QgsAttributeDialog::init()
405405
{
406406
case QVariant::Invalid: text = "NULL"; break;
407407
case QVariant::Int: text = QString::number( value.toInt() ); break;
408+
case QVariant::LongLong: text = QString::number( value.toLongLong() ); break;
408409
case QVariant::Double: text = QString::number( value.toDouble() ); break;
409410
case QVariant::String:
410411
default: text = value.toString();

‎src/gui/qgsattributeeditor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ bool QgsAttributeEditor::setValue( QWidget *editor, QgsVectorLayer *vl, int idx,
12071207
case QgsVectorLayer::SliderRange:
12081208
case QgsVectorLayer::EditRange:
12091209
{
1210-
if ( myFieldType == QVariant::Int )
1210+
if ( myFieldType == QVariant::Int || myFieldType == QVariant::LongLong )
12111211
{
12121212
if ( editType == QgsVectorLayer::EditRange )
12131213
{

0 commit comments

Comments
 (0)
Please sign in to comment.