summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-01-20 12:47:42 +0000
committerEike Rathke <erack@redhat.com>2023-03-07 11:45:56 +0000
commit5e9df4ffa753ac038bc6b94c48f393f81545a322 (patch)
treeef9eb483cc008058a0efff4b07c5fb3d2404ed50
parent58eafa815edf054492eaed247d01407b9defc781 (diff)
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 <caolanm@redhat.com> (cherry picked from commit 13b2bd1006182637b189bcfa77acfaf03ae028f0) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145811 Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--sc/source/ui/app/inputwin.cxx7
1 files changed, 5 insertions, 2 deletions
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();
}