vcl/source/window/layout.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 08850dbead8a8a797965aaa97d43d639bc0814d3 Author: Aron Budea <aron.bu...@collabora.com> AuthorDate: Fri Jun 3 18:22:12 2022 +0200 Commit: Aron Budea <aron.bu...@collabora.com> CommitDate: Fri Jun 3 21:10:42 2022 +0200 Related: tdf#147844 still log the discrepancy Change-Id: Iaed261c5b85ce507fb30b572eb08f09c89dda3e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135367 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-by: Aron Budea <aron.bu...@collabora.com> diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 4c9b23dbdb94..7ee87733c503 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -285,11 +285,11 @@ void VclBox::setAllocation(const Size &rAllocation) // is sent as bitmap but it is rendered from only the visible part // when it gets negative, it shrinks instead of expands and it becomes invisible - if( comphelper::LibreOfficeKit::isActive() ) + if (nExtraSpace < 0) { - if (nExtraSpace < 0) + SAL_WARN("vcl.layout", "nExtraSpace went negative for VclBox: " << GetHelpId()); + if (comphelper::LibreOfficeKit::isActive()) { - SAL_WARN("vcl.layout", "nExtraSpace went negative, setting to zero for VclBox: " << GetHelpId()); nExtraSpace = 0; } }