Kaydet (Commit) f9a5889a authored tarafından Miklos Vajna's avatar Miklos Vajna

SvxRectCtl: also notify parent when the tabpage is not the direct parent

After a .ui conversion the SvxRectCtl typically doesn't have the tab
page as parent directly, so check the parent chain recursively.

Change-Id: I9d8fc5de0c71685fa7e1be284990c16fc988ff8d
üst ef4926fe
...@@ -264,8 +264,16 @@ void SvxRectCtl::MouseButtonDown( const MouseEvent& rMEvt ) ...@@ -264,8 +264,16 @@ void SvxRectCtl::MouseButtonDown( const MouseEvent& rMEvt )
SetActualRP( eRP ); SetActualRP( eRP );
if( WINDOW_TABPAGE == GetParent()->GetType() ) Window* pParent = GetParent();
( (SvxTabPage*) GetParent() )->PointChanged( this, eRP ); while (pParent)
{
if( WINDOW_TABPAGE == pParent->GetType() )
{
( (SvxTabPage*) pParent )->PointChanged( this, eRP );
break;
}
pParent = pParent->GetParent();
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment