This commit is contained in:
eap 2011-02-11 15:20:04 +00:00
parent 904e9a8802
commit 4903340a61

View File

@ -153,9 +153,9 @@ namespace SMESH
if(theActor->GetPlot2Histogram()) if(theActor->GetPlot2Histogram())
if(aType == UpdateIn2dViewer) if(aType == UpdateIn2dViewer)
aHistogram = theActor->UpdatePlot2Histogram(); aHistogram = theActor->UpdatePlot2Histogram();
else else
aHistogram = theActor->GetPlot2Histogram(); aHistogram = theActor->GetPlot2Histogram();
else else
return; return;
@ -167,14 +167,14 @@ namespace SMESH
SUIT_ViewManager* aViewManager; SUIT_ViewManager* aViewManager;
foreach( aViewManager, aViewManagerList ) { foreach( aViewManager, aViewManagerList ) {
if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) { if (Plot2d_ViewManager* aManager = dynamic_cast<Plot2d_ViewManager*>(aViewManager)) {
if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) { if (SPlot2d_Viewer* aViewer = dynamic_cast<SPlot2d_Viewer*>(aManager->getViewModel())) {
if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) { if (Plot2d_ViewFrame* aViewFrame = aViewer->getActiveViewFrame()) {
if(aType == UpdateIn2dViewer ) if(aType == UpdateIn2dViewer )
aViewFrame->displayObject(aHistogram, true); aViewFrame->displayObject(aHistogram, true);
else if (aType == RemoveFrom2dViewer) else if (aType == RemoveFrom2dViewer)
aViewFrame->eraseObject(aHistogram, true); aViewFrame->eraseObject(aHistogram, true);
} }
} }
} }
} }
} }