From 08fa4b929dcab3508e3a02dd7cadfb4acde28700 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 18 Jul 2007 06:48:21 +0000 Subject: [PATCH] To check on resolution change action whether this partition supports the given resolution or not --- src/VISU_I/VISU_MultiResult_i.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_MultiResult_i.cc b/src/VISU_I/VISU_MultiResult_i.cc index 538cb33f..3aed7f85 100644 --- a/src/VISU_I/VISU_MultiResult_i.cc +++ b/src/VISU_I/VISU_MultiResult_i.cc @@ -308,7 +308,7 @@ namespace VISU NO_PERFSITENT_REF, aComment.latin1(), false); - } + } MultiResult_i::TPartInfos& aPartInfos = *thePartInfos; MultiResult_i::TPartName2FileName& aPartName2FileName = *thePartName2FileName; @@ -911,6 +911,13 @@ VISU::MultiResult_i if(aResolution == theResolution) return; + if(theResolution != VISU::Result::HIDDEN){ + MultiResult_i::TResolutions aResolutions = VISU::GetResolutions(myMainPart2SubPartNames, thePartName); + MultiResult_i::TResolutions::iterator anIter = aResolutions.find(theResolution); + if(anIter == aResolutions.end()) + return; + } + VISU::Storable::TRestoringMap aRestoringMap; aRestoringMap["myComment"] = "PART"; aRestoringMap["myMeshName"] = theMeshName; @@ -1121,7 +1128,8 @@ VISU::MultiResult_i } PInput anInput(CreateConvertor(aFileName)); anInput->BuildFields(); - anInput->BuildMinMax(); + if(myIsBuildMinMax) + anInput->BuildMinMax(); myRepresentation2Input[aRepresentationKey] = anInput; return anInput; } -- 2.39.2