From f9a5889ab65113bfd5d3fa5228620475f57eb59a Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 4 Jul 2013 18:25:22 +0200 Subject: 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 --- svx/source/dialog/dlgctrl.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/svx/source/dialog/dlgctrl.cxx b/svx/source/dialog/dlgctrl.cxx index 247c6cb09839..dd4346f21f32 100644 --- a/svx/source/dialog/dlgctrl.cxx +++ b/svx/source/dialog/dlgctrl.cxx @@ -264,8 +264,16 @@ void SvxRectCtl::MouseButtonDown( const MouseEvent& rMEvt ) SetActualRP( eRP ); - if( WINDOW_TABPAGE == GetParent()->GetType() ) - ( (SvxTabPage*) GetParent() )->PointChanged( this, eRP ); + Window* pParent = GetParent(); + while (pParent) + { + if( WINDOW_TABPAGE == pParent->GetType() ) + { + ( (SvxTabPage*) pParent )->PointChanged( this, eRP ); + break; + } + pParent = pParent->GetParent(); + } } } } -- cgit