Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

This patch resolve issue fdo#41245, I checked the with some PPT files, it
seems to be good but I'm not sure.

Thanks in advance for reviewing

-- 
Arnaud Versini
From c5afa463c8f6d613bebf7b0c7290e8ca903edc4f Mon Sep 17 00:00:00 2001
From: Arnaud Versini <arnaud.versini@gmail.com>
Date: Tue, 25 Oct 2011 19:49:34 +0200
Subject: [PATCH] Fix fdo#41245 : Auto fit text VIEWING too small in PPT

---
 filter/source/msfilter/svdfppt.cxx |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index bb1e8b3..fc987b8 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -1073,12 +1073,10 @@ SdrObject* SdrEscherImport::ProcessObj( SvStream& rSt, DffObjData& 
rObjData, voi
                 }
                 pTObj->SetMergedItem( SvxFrameDirectionItem( bVerticalText ? FRMDIR_VERT_TOP_RIGHT 
: FRMDIR_HORI_LEFT_TOP, EE_PARA_WRITINGDIR ) );
 
-                if (bAutoFit)
+                //Autofit text only if there is no auto grow height and width
+                //See fdo#41245
+                if (bAutoFit && !bAutoGrowHeight && !bAutoGrowWidth)
                 {
-                    // disable both, defeats purpose of autofit
-                    // otherwise
-                    bAutoGrowHeight = sal_False;
-                    bAutoGrowWidth = sal_False;
                     pTObj->SetMergedItem( SdrTextFitToSizeTypeItem(SDRTEXTFIT_AUTOFIT) );
                 }
 
-- 
1.7.5.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.