Navigation Menu

Skip to content

Commit

Permalink
More LongLong fixes
Browse files Browse the repository at this point in the history
Fix #9761
  • Loading branch information
m-kuhn committed Mar 11, 2014
1 parent efabcdf commit b02ad1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gui/qgsattributedialog.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsattributeeditor.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit b02ad1e

Please sign in to comment.