From dac968d895c8d9a52684d2ab05187ae147f52ff7 Mon Sep 17 00:00:00 2001 From: rnv Date: Thu, 5 May 2011 11:23:12 +0000 Subject: [PATCH] Fix for the "21254: EDF 1861 VISU: Eye symbol and VISU presentations" issue. --- src/VISU_I/VISU_Tools.cxx | 2 +- src/VISU_I/VISU_ViewManager_i.cc | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/VISU_I/VISU_Tools.cxx b/src/VISU_I/VISU_Tools.cxx index fb66089e..06dfe710 100644 --- a/src/VISU_I/VISU_Tools.cxx +++ b/src/VISU_I/VISU_Tools.cxx @@ -335,7 +335,7 @@ namespace VISU //------------------------------------------------------------ void SetVisibilityState(VISU_ActorBase *theActor, Qtx::VisibilityState state) { - if(!theActor || theActor->hasIO() || !theActor->getIO()->hasEntry()) + if(!theActor || !theActor->hasIO() || !theActor->getIO()->hasEntry()) return; SetVisibilityState(theActor->getIO()->getEntry(), state); } diff --git a/src/VISU_I/VISU_ViewManager_i.cc b/src/VISU_I/VISU_ViewManager_i.cc index cc1df895..932dea77 100644 --- a/src/VISU_I/VISU_ViewManager_i.cc +++ b/src/VISU_I/VISU_ViewManager_i.cc @@ -313,11 +313,11 @@ namespace VISU { } else { if(theDisplaing == eEraseAll || theDisplaing == eDisplayOnly) { anVISUActor->VisibilityOff(); - VISU::SetVisibilityState(aResActor, Qtx::HiddenState); + VISU::SetVisibilityState(anVISUActor, Qtx::HiddenState); } else if ( theDisplaing == eDisplayAll ) { anVISUActor->VisibilityOn(); - VISU::SetVisibilityState(aResActor, Qtx::HiddenState); + VISU::SetVisibilityState(anVISUActor, Qtx::HiddenState); } } } @@ -326,10 +326,11 @@ namespace VISU { RepaintView(theViewWindow); return aResActor; } - if(thePrs != NULL && theDisplaing < eErase){ + if(thePrs != NULL && theDisplaing < eErase) { try{ anVISUActor = thePrs->CreateActor(); vf->AddActor(anVISUActor); + VISU::SetVisibilityState(anVISUActor, Qtx::ShownState); }catch(std::exception& exc){ if(MYDEBUG) INFOS(exc.what()); return NULL; -- 2.39.2