diff options
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/layout.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/basctl/source/basicide/layout.cxx b/basctl/source/basicide/layout.cxx index 54195c564898..57d5a9369753 100644 --- a/basctl/source/basicide/layout.cxx +++ b/basctl/source/basicide/layout.cxx @@ -349,7 +349,10 @@ void Layout::SplittedSide::ArrangeIn (tools::Rectangle const& rRect) { Item& rItem = vItems[iLastWin]; Size aSize = rItem.pWin->GetDockingSize(); - (bVertical ? aSize.Height() : aSize.Width()) += nLength - rItem.nEndPos; + if (bVertical) + aSize.AdjustHeight( nLength - rItem.nEndPos ); + else + aSize.AdjustWidth( nLength - rItem.nEndPos ); rItem.pWin->ResizeIfDocking(aSize); // and hiding the split line after the window if (iLastWin < vItems.size() - 1) |