diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-31 15:45:47 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2022-10-31 17:28:24 +0100 |
commit | 07f8666254e459bcd880b5bc4314b1af404d0a6e (patch) | |
tree | 9b51c8af1568929f1cc952fed838b5678f9ec33f | |
parent | bed4d8f1eb32a39bfce5c7fa8546dbab155706a7 (diff) |
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 <quikee@gmail.com>
Tested-by: Jenkins
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |