diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-08-07 14:15:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-08-08 08:45:00 +0200 |
commit | dcf5d33229a630c9bd648665a88602cda7204c43 (patch) | |
tree | 1380aff4bcc739ccc7daec4a09390a50e171e4bb /vcl/source/window/layout.cxx | |
parent | 303551ba27e069c26e930fa932637395ab57e6e2 (diff) |
nSize shall presumably be of type long, not double
It was introduced with 6f660293885733e64602aa6144c36ed7e7b43faf "implement
VclVPaned and decripple formula panel", but using double was presumably a typo,
as it is initialized with a long value (Splitter::GetSplitPosPixel()), is
combined with other long values (Size::Height()), and passed to long
nSecondHeight parameter of VclVPaned::arrange.
Change-Id: Ida41eac092d8242561ce35195fd9fd3c8da7f373
Reviewed-on: https://gerrit.libreoffice.org/77107
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source/window/layout.cxx')
-rw-r--r-- | vcl/source/window/layout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 58ac1c5cd482..f5beadaf0a9f 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2501,7 +2501,7 @@ void VclVPaned::dispose() IMPL_LINK(VclVPaned, SplitHdl, Splitter*, pSplitter, void) { - double nSize = pSplitter->GetSplitPosPixel(); + long nSize = pSplitter->GetSplitPosPixel(); Size aSplitterSize(m_pSplitter->GetSizePixel()); Size aAllocation(GetSizePixel()); arrange(aAllocation, nSize, aAllocation.Height() - nSize - aSplitterSize.Height()); |