//------------------------------------------------------------
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);
}
} 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);
}
}
}
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;