summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-07-04 18:25:22 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-07-04 18:32:21 +0200
commitf9a5889ab65113bfd5d3fa5228620475f57eb59a (patch)
treee6f7b2f0a50b757dec35c5cbd7441bbebf217a7d
parentef4926fe6640cc8ba48117075b0b5871f02e34f3 (diff)
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
-rw-r--r--svx/source/dialog/dlgctrl.cxx12
1 files 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();
+ }
}
}
}