sc/source/ui/app/inputwin.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 5e9df4ffa753ac038bc6b94c48f393f81545a322 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Fri Jan 20 12:47:42 2023 +0000 Commit: Eike Rathke <er...@redhat.com> CommitDate: Tue Mar 7 11:45:56 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> (cherry picked from commit 13b2bd1006182637b189bcfa77acfaf03ae028f0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145811 Reviewed-by: Eike Rathke <er...@redhat.com> diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 4e8e544d2103..6f567e440515 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()); } } - SetSizePixel(aSize); + + if (aStartSize != aSize) + SetSizePixel(aSize); Invalidate(); }