From: akl Date: Wed, 12 Feb 2014 13:28:23 +0000 (+0400) Subject: Fix of 0022478: EDF GEOM [XAO] : Bad display of integer fields X-Git-Tag: V7_4_0a1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53c951cf82ad23eed654f1b8ca42c9fd588d48ed;p=modules%2Fgeom.git Fix of 0022478: EDF GEOM [XAO] : Bad display of integer fields --- 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;