mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-13 17:18:36 +05:00
#18319 [CEA 18318] Display of a field with negative value
This commit is contained in:
parent
627494a5b0
commit
6f0f4ed5d1
@ -2900,7 +2900,10 @@ QList<QVariant> GEOM_Displayer::groupFieldData( const QList<QVariant>& theFieldS
|
|||||||
aValue = double( aVariant.toLongLong() );
|
aValue = double( aVariant.toLongLong() );
|
||||||
else if( aVariant.type() == QVariant::Double )
|
else if( aVariant.type() == QVariant::Double )
|
||||||
aValue = aVariant.toDouble();
|
aValue = aVariant.toDouble();
|
||||||
aNorm += aValue * aValue;
|
if ( theFieldNbComponents > 1 )
|
||||||
|
aNorm += aValue * aValue;
|
||||||
|
else
|
||||||
|
aNorm += aValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2911,7 +2914,7 @@ QList<QVariant> GEOM_Displayer::groupFieldData( const QList<QVariant>& theFieldS
|
|||||||
{
|
{
|
||||||
if( anIsBoolean )
|
if( anIsBoolean )
|
||||||
aNorm /= theFieldNbComponents;
|
aNorm /= theFieldNbComponents;
|
||||||
else
|
else if ( theFieldNbComponents > 1 )
|
||||||
aNorm = pow( aNorm, 0.5 );
|
aNorm = pow( aNorm, 0.5 );
|
||||||
|
|
||||||
if( aGroupedList.isEmpty() )
|
if( aGroupedList.isEmpty() )
|
||||||
|
Loading…
Reference in New Issue
Block a user