diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 17:10:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-01 07:19:10 +0100 |
commit | b8ececb409cd94b24d71f29339e652857dd2063a (patch) | |
tree | f732ff1cfec95c0d3eca06d3c906e67402a02b73 /basctl | |
parent | a54a3afdb7da42bd603892d1c9b2fcdd7b405e8f (diff) |
drop old tools/gen methods in accessibility..formula
Change-Id: I075e29173945200854f2ef8e420867871659766a
Reviewed-on: https://gerrit.libreoffice.org/50446
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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) |