From: eap Date: Wed, 23 Apr 2008 14:04:53 +0000 (+0000) Subject: PAL19395 Unknoun exception is raised after trying to import med file in SMESH X-Git-Tag: V4_1_2rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=036639c859d19af9bd2e5b5970b08d3b42e01726;p=modules%2Fsmesh.git PAL19395 Unknoun exception is raised after trying to import med file in SMESH protect from exception when setting invalid color --- diff --git a/src/SMESHDS/SMESHDS_GroupBase.cxx b/src/SMESHDS/SMESHDS_GroupBase.cxx index 1559f642b..02bba1576 100644 --- a/src/SMESHDS/SMESHDS_GroupBase.cxx +++ b/src/SMESHDS/SMESHDS_GroupBase.cxx @@ -175,6 +175,13 @@ void SMESHDS_GroupBase::SetColorGroup(int theColorGroup) double aR = aRed/255.0; double aG = aGreen/255.0; double aB = aBlue/255.0; + if ( aR < 0. || aR > 1. || // PAL19395 + aG < 0. || aG > 1. || + aB < 0. || aB > 1. ) +#ifdef _DEBUG_ + cout << "SMESHDS_GroupBase::SetColorGroup("<