}
}
+ bool isFoundImage = false;
// for selected objects
if( myId == ShowId || myId == ShowOnlyId || myId == HideId )
{
anObject = aSeq.Value( anIndex );
if( !anObject.IsNull() )
{
+ if ( anObject->GetKind() == KIND_IMAGE )
+ isFoundImage = true;
+
module()->setObjectVisible( aViewId, anObject, aVisibility );
if ( anObject->GetKind() == KIND_REGION )
{
if ( myId == ShowOnlyId || myId == ShowId || myId == ShowAllId )
{
- //anUpdateFlags |= UF_FitAll;
+ if( isFoundImage || myId == ShowAllId )
+ anUpdateFlags |= UF_FitAll;
}
// Set VTK viewer active if show a bathymetry