[Libreoffice-commits] core.git: sw/source

Caolán McNamara caolanm at redhat.com
Thu Feb 2 16:10:49 UTC 2017


 sw/source/filter/ww8/ww8atr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6263d03d538f014af2e17a4ecf3d218387ba5219
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Feb 2 16:02:42 2017 +0000

    bffvalidator: animated text srpm has 1 byte payload, not 2
    
    which is why my sample document creates a .doc which triggers
    word's safe mode
    
    this has been wrong since initial impl in
    
    commit 4d5c193b2fd38c6cab049fcb97189462fff0fddb
    ...
        2003/07/17 14:13:17 mmaher 1.64.6.6: #110851# Added support for animated text effects
    
    a mere 13+ years ago
    
    Change-Id: I8c4d95dac8e03f6523a2a036f0100f425f787a13

diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 1a833a9..274739e 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -1124,7 +1124,7 @@ void WW8AttributeOutput::CharAnimatedText( const SvxBlinkItem& rBlink )
 {
     m_rWW8Export.InsUInt16( NS_sprm::LN_CSfxText );
     // At the moment the only animated text effect we support is blinking
-    m_rWW8Export.InsUInt16( rBlink.GetValue() ? 2 : 0 );
+    m_rWW8Export.pO->push_back( rBlink.GetValue() ? 2 : 0 );
 }
 
 void WW8AttributeOutput::CharCrossedOut( const SvxCrossedOutItem& rCrossed )


More information about the Libreoffice-commits mailing list