summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-05-18 10:07:15 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-05-18 22:48:32 +0200
commit33339778c83f2e2d06e302f392d3ae36ee886e8f (patch)
tree4c59f98bd9d91d99a3ad237eeba89220af4ed630 /sc
parent602299b92b7452fd47303c4de8945af2725fb255 (diff)
tdf#99708 Make sure to get the sanitized value
Follow-up to d0cacf09a1105d89bf3df84b18623d790e3aeb82 Change-Id: Iaf1f755b5dcf172d781fc5884fdba4c891b6b1a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134508 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index ab258fe6368c..2cdf9977671f 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1331,10 +1331,10 @@ void ScTextWnd::SetNumLines(tools::Long nLines)
{
ScViewData& rViewData = mpViewShell->GetViewData();
rViewData.SetFormulaBarLines(nLines);
-
if ( nLines > 1 )
{
- mnLastExpandedLines = nLines;
+ // SetFormulaBarLines sanitizes the height, so get the sanitized value
+ mnLastExpandedLines = rViewData.GetFormulaBarLines();
Resize();
}
}