diff --git a/examples/styling/image-channel-control-impl.cpp b/examples/styling/image-channel-control-impl.cpp index 1b3c9e1..4672d7d 100644 --- a/examples/styling/image-channel-control-impl.cpp +++ b/examples/styling/image-channel-control-impl.cpp @@ -161,22 +161,10 @@ void ImageChannelControl::OnInitialize() void ImageChannelControl::OnStageConnection( int depth ) { Control::OnStageConnection( depth ); - - if( mVisual ) - { - CustomActor self = Self(); - mVisual.SetOnStage( self ); - } } void ImageChannelControl::OnStageDisconnection() { - if( mVisual ) - { - CustomActor self = Self(); - mVisual.SetOffStage( self ); - } - Control::OnStageDisconnection(); }