Fix of 0022478: EDF GEOM [XAO] : Bad display of integer fields

This commit is contained in:
akl 2014-02-12 17:28:23 +04:00
parent 855ee33e8a
commit 53c951cf82

View 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;