From: akl Date: Mon, 12 Jan 2009 13:06:43 +0000 (+0000) Subject: 1) Fix of 20107 issue (EDF 890 VISU : In some cases, Saclarbar and Deformed Shape... X-Git-Tag: before_mergefrom_BR_V5_IMP_P8_22Jan09~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=98bfaefa7d4fc8e3e0b899f010c34dcb1c7e35d9;p=modules%2Fvisu.git 1) Fix of 20107 issue (EDF 890 VISU : In some cases, Saclarbar and Deformed Shape does not store the component used as scalar). 2) Correct fix of 20094 issue (EDF 895 VISU : ScalarMaponDeformedShape, problems with title). --- diff --git a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc b/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc index a2ff8fa5..8fa94e4d 100644 --- a/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc +++ b/src/VISU_I/VISU_DeformedShapeAndScalarMap_i.cc @@ -222,6 +222,10 @@ VISU::DeformedShapeAndScalarMap_i SetScalarField(anOrigin->GetScalarEntity(), aFieldName, anOrigin->GetScalarTimeStampNumber()); + SetTitle(anOrigin->GetTitle()); //fix of 20094 issue + SetScalarMode(anOrigin->GetScalarMode()); // + if(!IsRangeFixed() && IsPipeLineExists()) //fix of 20107 issue + SetSourceRange(); // Update(); } } @@ -360,7 +364,7 @@ VISU::DeformedShapeAndScalarMap_i myScalarFieldName = theFieldName; myScalarTimeStampNumber = theTimeStampNumber; - /*SetTitle(theFieldName);*/ //fix of 20094 issue + SetTitle(theFieldName); SetScalarMode(GetScalarMode()); if(!IsRangeFixed() && IsPipeLineExists()) SetSourceRange();