diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-03-30 21:16:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-03-30 22:02:31 +0000 |
commit | 4ceb287c6d42940adf887f36c4f88abae44e0022 (patch) | |
tree | fd956f35bc8edab18d6c30dc52a12a2158bf86aa /svx/source/svdraw/svdotext.cxx | |
parent | 5af55a4b4ce86c61cb227822c016f0d51e03c009 (diff) |
cid#1524600 Logically dead code
since:
commit 628275acb1b9652e65b8c5c013549dce5ad6f5bf
Date: Thu Mar 23 11:24:30 2023 +0900
tdf#90407 Change the auto-fit alg. to match better with OOXML
Change-Id: Ib315d7543229b6ddae0e3282be8cfdfb3f1bad13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149776
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 65f1dab7db65..52bf41312eed 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1290,17 +1290,9 @@ void SdrTextObj::ImpAutoFitText(SdrOutliner& rOutliner, const Size& rTextSize, { const Size aCurrTextSize = rOutliner.CalcTextSizeNTP(); double fFactor = 1.0; - if( bIsVerticalWriting ) - { - if (aCurrTextSize.Width() != 0) - { - fFactor = double(rTextSize.Width())/aCurrTextSize.Width(); - } - } - else if (aCurrTextSize.Height() != 0) - { - fFactor = double(rTextSize.Height())/aCurrTextSize.Height(); - } + if (aCurrTextSize.Width() != 0) + fFactor = double(rTextSize.Width())/aCurrTextSize.Width(); + // fFactor scales in both x and y directions // - this is fine for bulleted words // - but it scales too much for a long paragraph |