editeng/source/editeng/impedit3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 07f8666254e459bcd880b5bc4314b1af404d0a6e Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Mon Oct 31 15:45:47 2022 +0200 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Mon Oct 31 17:28:24 2022 +0100 fix regression from "editeng: don't use GetSize to set the size" Params are swapped since commit 190cd40e01bd36e99b265ef5da36a382199f18b9 (HEAD, master) Date: Tue Oct 18 21:14:41 2022 +0200 editeng: don't use GetSize to set the size Change-Id: I0a3fce0c8325fa59c385fa2e45a53215853e351a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142077 Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Tested-by: Jenkins diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index ed560fb0e138..3b69ff6cf66e 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2169,7 +2169,7 @@ void ImpEditEngine::ImpBreakLine( ParaPortion* pParaPortion, EditLine* pLine, Te SvxFont aFont; SeekCursor( pParaPortion->GetNode(), nBreakPos, aFont ); aFont.SetPhysFont(*GetRefDevice()); - pHyphPortion->SetSize(Size(GetRefDevice()->GetTextHeight(), GetRefDevice()->GetTextWidth(CH_HYPH))); + pHyphPortion->SetSize(Size(GetRefDevice()->GetTextWidth(CH_HYPH), GetRefDevice()->GetTextHeight())); pParaPortion->GetTextPortions().Insert(++nEndPortion, pHyphPortion); }