summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
+ }
}
}
}