diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-21 11:41:26 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-08-23 13:39:19 +0200 |
commit | 13644a7b93f9d709af9e593392c801d6807b7807 (patch) | |
tree | 75744e032575035e416e5df2f9b3c5b85b23dc61 /svx | |
parent | 7ed4404a38b477bdec9c1eb463fc216dc025a881 (diff) |
spellchecking wave doesn't extend to the full width of superscript text
or subscript, e.g. enter tmalltmalltmalltmalltmalltmalltmall in
impress, format character, position, superscript, ok and without this
change the wave extends only 80% of the width of the misspelt text
Change-Id: I5d3ad61541152199809c950349533ca3fa7ed1c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155890
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 8ec43f37a7a5babe9227a5ca1ea84720fc2e15e5)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155923
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdotextdecomposition.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index 5d7c51208154..66c97d29b9b1 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -168,11 +168,9 @@ namespace // look for proportional font scaling, if necessary, scale accordingly sal_Int8 nPropr(rInfo.mrFont.GetPropr()); - if(100 != nPropr) - { - const double fFactor(rInfo.mrFont.GetPropr() / 100.0); - aNewTransform.scale(fFactor, fFactor); - } + const double fPropFontFactor(nPropr / 100.0); + if (100 != nPropr) + aNewTransform.scale(fPropFontFactor, fPropFontFactor); // apply font rotate if(rInfo.mrFont.GetOrientation()) @@ -439,7 +437,7 @@ namespace // need to take FontScaling out of values; it's already part of // aNewTransform and would be double applied - const double fFontScaleX(aFontScaling.getX()); + const double fFontScaleX(aFontScaling.getX() * fPropFontFactor); if(!basegfx::fTools::equal(fFontScaleX, 1.0) && !basegfx::fTools::equalZero(fFontScaleX)) |