]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for the "21254: EDF 1861 VISU: Eye symbol and VISU presentations" issue. V6_3_0b1 V6_3_BR20110506 V6_3_BR20110510
authorrnv <rnv@opencascade.com>
Thu, 5 May 2011 11:23:12 +0000 (11:23 +0000)
committerrnv <rnv@opencascade.com>
Thu, 5 May 2011 11:23:12 +0000 (11:23 +0000)
src/VISU_I/VISU_Tools.cxx
src/VISU_I/VISU_ViewManager_i.cc

index fb66089e3ded20ff441fbf3ea5d47fe404b444f7..06dfe710b08c08fbbfbf5ed43ef0c6f8a2a29838 100644 (file)
@@ -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);
   }
index cc1df8951a20093cdae537a078efeaf5548027d3..932dea774e9aaa360a7d1d7bba775f6d4eb236a1 100644 (file)
@@ -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;