From 53c951cf82ad23eed654f1b8ca42c9fd588d48ed Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 12 Feb 2014 17:28:23 +0400 Subject: [PATCH] Fix of 0022478: EDF GEOM [XAO] : Bad display of integer fields --- src/GEOMGUI/GEOM_Displayer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GEOMGUI/GEOM_Displayer.cxx b/src/GEOMGUI/GEOM_Displayer.cxx index c205a8505..c01aa0e5c 100644 --- a/src/GEOMGUI/GEOM_Displayer.cxx +++ b/src/GEOMGUI/GEOM_Displayer.cxx @@ -2570,8 +2570,8 @@ QList GEOM_Displayer::groupFieldData( const QList& theFieldS } else { - if( aVariant.type() == QVariant::Int ) - aValue = double( aVariant.toInt() ); + if( aVariant.type() == QVariant::LongLong ) + aValue = double( aVariant.toLongLong() ); else if( aVariant.type() == QVariant::Double ) aValue = aVariant.toDouble(); aNorm += aValue * aValue; -- 2.39.2