svx/source/svdraw/svdotextdecomposition.cxx |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

New commits:
commit 8ec43f37a7a5babe9227a5ca1ea84720fc2e15e5
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Mon Aug 21 11:41:26 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Aug 21 14:12:42 2023 +0200

    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.mcnam...@collabora.com>

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))

Reply via email to