diff options
Diffstat (limited to 'sfx2/source/appl/workwin.cxx')
-rw-r--r-- | sfx2/source/appl/workwin.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sfx2/source/appl/workwin.cxx b/sfx2/source/appl/workwin.cxx index 85683c94d087..56d4a66aa15d 100644 --- a/sfx2/source/appl/workwin.cxx +++ b/sfx2/source/appl/workwin.cxx @@ -2176,12 +2176,9 @@ tools::Rectangle SfxWorkWindow::GetTopRect_Impl() bool SfxWorkWindow::RequestTopToolSpacePixel_Impl( SvBorder aBorder ) { - if ( !IsDockingAllowed() || + return !(!IsDockingAllowed() || aClientArea.GetWidth() < aBorder.Left() + aBorder.Right() || - aClientArea.GetHeight() < aBorder.Top() + aBorder.Bottom() ) - return false; - else - return true; + aClientArea.GetHeight() < aBorder.Top() + aBorder.Bottom()); } void SfxWorkWindow::SaveStatus_Impl(SfxChildWindow *pChild, const SfxChildWinInfo &rInfo) |