summaryrefslogtreecommitdiff
path: root/basctl/source/basicide/layout.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basctl/source/basicide/layout.cxx')
-rw-r--r--basctl/source/basicide/layout.cxx5
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)