]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix of 0022478: EDF GEOM [XAO] : Bad display of integer fields
authorakl <akl@opencascade.com>
Wed, 12 Feb 2014 13:28:23 +0000 (17:28 +0400)
committerakl <akl@opencascade.com>
Wed, 12 Feb 2014 13:28:23 +0000 (17:28 +0400)
src/GEOMGUI/GEOM_Displayer.cxx

index c205a850532920d96fa162f92388a9cab6f4568e..c01aa0e5c84c5394d811b2e0664494b706291f2e 100644 (file)
@@ -2570,8 +2570,8 @@ QList<QVariant> GEOM_Displayer::groupFieldData( const QList<QVariant>& 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;