sc/source/ui/app/inputwin.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 13b2bd1006182637b189bcfa77acfaf03ae028f0 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jan 20 12:47:42 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Jan 20 16:18:24 2023 +0000 rhbz#2162658 backtrace showing endlessly recursive ScInputWindow::Resize Change-Id: I2d10fd1ebfb1c25cf213ebb68e7d34e39fadde13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145894 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 14ef498976ba..c41899dc3166 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -474,7 +474,8 @@ void ScInputWindow::Resize() { ToolBox::Resize(); - Size aSize = GetSizePixel(); + Size aStartSize = GetSizePixel(); + Size aSize = aStartSize; //(-10) to allow margin between sidebar and formulabar tools::Long margin = (comphelper::LibreOfficeKit::isActive()) ? 10 : 0; @@ -498,7 +499,9 @@ void ScInputWindow::Resize() aSize.setHeight(aGroupBarSize.Height() + 2 * (pGroupBar->GetVertOffset() + 1)); } } - SetSizePixel(aSize); + + if (aStartSize != aSize) + SetSizePixel(aSize); Invalidate(); }