[Libreoffice-commits] .: sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Mon Dec 13 07:42:46 PST 2010
sw/source/filter/ww8/docxattributeoutput.cxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit fa6d059088eafc99df33666a89eb43b42e92d852
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Mon Dec 13 16:38:16 2010 +0100
docx iso export: ST_Shd requires val attribute, used clear
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 2e4658e..c78b78d 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1579,6 +1579,7 @@ void DocxAttributeOutput::TableBackgrounds( ww8::WW8TableNodeInfoInner::Pointer_
OString sColor = impl_ConvertColor( aColor );
m_pSerializer->singleElementNS( XML_w, XML_shd,
FSNS( XML_w, XML_fill ), sColor.getStr( ),
+ FSNS( XML_w, XML_val ), "clear",
FSEND );
}
@@ -2841,7 +2842,9 @@ void DocxAttributeOutput::CharAnimatedText( const SvxBlinkItem& rBlink )
void DocxAttributeOutput::CharBackground( const SvxBrushItem& rBrush )
{
m_pSerializer->singleElementNS( XML_w, XML_shd,
- FSNS( XML_w, XML_fill ), impl_ConvertColor( rBrush.GetColor() ).getStr(), FSEND );
+ FSNS( XML_w, XML_fill ), impl_ConvertColor( rBrush.GetColor() ).getStr(),
+ FSNS( XML_w, XML_val ), "clear",
+ FSEND );
}
void DocxAttributeOutput::CharFontCJK( const SvxFontItem& rFont )
@@ -3738,6 +3741,7 @@ void DocxAttributeOutput::FormatBackground( const SvxBrushItem& rBrush )
OString sColor = impl_ConvertColor( rBrush.GetColor( ) );
m_pSerializer->singleElementNS( XML_w, XML_shd,
FSNS( XML_w, XML_fill ), sColor.getStr( ),
+ FSNS( XML_w, XML_val ), "clear",
FSEND );
}
}
More information about the Libreoffice-commits
mailing list