From 04e14265860f658feb03989abec24ce96f5b71c7 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 12 Dec 2006 14:22:37 +0000 Subject: [PATCH] NPAL14191: Regression: error with function generateFrames(). --- src/VISU_I/VISU_TimeAnimation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index 7e2027e8..a7ed33b2 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -399,6 +399,7 @@ void VISU_TimeAnimation::generatePresentations(CORBA::Long theFieldNum) { using namespace VISU; switch (aData.myPrsType) { + case VISU::TSCALARMAP: case VISU::TPRSMERGER: // ScalarMap GeneratePresentations(myStudy, aData, @@ -1438,6 +1439,7 @@ std::string GetPresentationComment (VISU::VISUType thePrsType) { std::string aPrsCmt; switch (thePrsType) { + case VISU::TSCALARMAP: case VISU::TPRSMERGER: aPrsCmt = VISU::PrsMerger_i::myComment; break; @@ -1623,7 +1625,8 @@ void VISU_TimeAnimation::restoreFromStudy(_PTR(SObject) theField) string aStr = aName->Value(); QString strName (aStr.c_str()); - if (strName == VISU::PrsMerger_i::myComment.c_str()) + if (strName == VISU::PrsMerger_i::myComment.c_str() || + strName == VISU::ScalarMap_i::myComment.c_str()) aData.myPrsType = VISU::TPRSMERGER; else if (strName == VISU::IsoSurfaces_i::myComment.c_str()) aData.myPrsType = VISU::TISOSURFACE; -- 2.39.2