[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - filter/source

Szymon Kłos szymon.klos at collabora.com
Tue Oct 31 09:07:07 UTC 2017


 filter/source/msfilter/msdffimp.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d4a84bf09c42faa7e0954477834cd4c4e83248f5
Author: Szymon Kłos <szymon.klos at collabora.com>
Date:   Thu Oct 26 18:13:05 2017 +0200

    tdf#113162 corect the size only for watermark 2
    
    Missing part for: 91d909ac8ec53ea135401babe8227f9c41b779b8
    
    Change-Id: Id35d61084e034c7381c8e8016e50dd66aaf41d59
    Reviewed-on: https://gerrit.libreoffice.org/43950
    Reviewed-by: Andras Timar <andras.timar at collabora.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 6e92dfe58c56..1a8d53138700 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4416,7 +4416,8 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
                         aFont.SetFamilyName( aFontName );
                         auto nTextWidth = pOut->GetTextWidth( aObjectText );
 
-                        if ( nTextWidth && aObjData.eShapeType == mso_sptTextPlainText )
+                        OUString aObjName = GetPropertyString(DFF_Prop_wzName, rSt);
+                        if ( nTextWidth && aObjData.eShapeType == mso_sptTextPlainText && aObjName.match("PowerPlusWaterMarkObject"))
                         {
                             fRatio = aFont.GetFontSize().Height();
                             fRatio /= nTextWidth;


More information about the Libreoffice-commits mailing list