From 5e9365d7f76f28660e4db0c8b43477b731f1c53b Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 11 Oct 2005 06:07:27 +0000 Subject: [PATCH] Fix on Bug GVIEW10205 Incorrect restoring hdf files --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 9325460c..4c6e2dff 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -43,8 +43,6 @@ static int MYDEBUG = 0; static int MYDEBUG = 0; #endif -static int INCMEMORY = 4; - //============================================================================ VISU::ColoredPrs3d_i:: @@ -499,6 +497,8 @@ VISU::ColoredPrs3d_i myLabelColor[0] = aLabelColor.red() / 255; myLabelColor[1] = aLabelColor.green() / 255; myLabelColor[2] = aLabelColor.blue() / 255; + + return this; } VISU::Storable* @@ -512,6 +512,8 @@ VISU::ColoredPrs3d_i myFieldName = VISU::Storable::FindValue(theMap,"myFieldName").latin1(); myIteration = VISU::Storable::FindValue(theMap,"myIteration").toInt(); + myAddToStudy = false; //SRN Added 21/06/2003 SAL2983: to avoid addition of the new ScalarMap to study. + Build(true); TSuperClass::Restore(theMap); @@ -543,8 +545,6 @@ VISU::ColoredPrs3d_i myLabelColor[1] = VISU::Storable::FindValue(theMap,"myLabelColor[1]").toFloat(); myLabelColor[2] = VISU::Storable::FindValue(theMap,"myLabelColor[2]").toFloat(); - myAddToStudy = false; //SRN Added 21/06/2003 SAL2983: to avoid addition of the new ScalarMap to study. - return this; } -- 2.39.2