sc/source/ui/app/inputwin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 33339778c83f2e2d06e302f392d3ae36ee886e8f Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Wed May 18 10:07:15 2022 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Wed May 18 22:48:32 2022 +0200 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.mehrbr...@allotropia.de> 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(); } }