From: rnv Date: Thu, 5 May 2011 11:23:12 +0000 (+0000) Subject: Fix for the "21254: EDF 1861 VISU: Eye symbol and VISU presentations" issue. X-Git-Tag: V6_3_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dac968d895c8d9a52684d2ab05187ae147f52ff7;p=modules%2Fvisu.git Fix for the "21254: EDF 1861 VISU: Eye symbol and VISU presentations" issue. --- 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;