diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-01 16:40:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-01 19:00:48 +0200 |
commit | cab25db0c0eeb0606afaf93574265e26e7bb2bd8 (patch) | |
tree | 25fcc9f189c5525a451eb76618c886f07c0f12c7 /editeng | |
parent | 258a8d133d0548c7af51f4852260e9969df288fc (diff) |
no no need to call QuickGetTextSize here
when we only need the height
Change-Id: I16d74cb6f68e3391b9857cc9702cc6f93b9fb9ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137678
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 4f0444f7e982..143a763208e1 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -1007,8 +1007,7 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY ) // Height needed... SeekCursor( pNode, nTmpPos+1, aTmpFont ); - pPortion->GetSize().setHeight( - aTmpFont.QuickGetTextSize( GetRefDevice(), OUString(), 0, 0, nullptr ).Height() ); + pPortion->GetSize().setHeight( GetRefDevice()->GetTextHeight() ); DBG_ASSERT( pPortion->GetSize().Width() >= 0, "Tab incorrectly calculated!" ); |