From e8706d7a110547c04e6db9ed75b2e7f74bd6d0bd Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 2 May 2012 17:50:55 +0200 Subject: fdo#47764 fix RTF import of automatic paragraph background color Change-Id: I4b3a4bd6ce45cffc5b2c23052c49ff98579c5564 --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'writerfilter/source/rtftok') diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 0e1a53faef3e..9bbbcb0c151d 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -2331,6 +2331,7 @@ int RTFDocumentImpl::dispatchValue(RTFKeyword nKeyword, int nParam) } break; case RTF_CBPAT: + if (nParam) { RTFValue::Pointer_t pValue(new RTFValue(getColorTable(nParam))); lcl_putNestedAttribute(m_aStates.top().aParagraphSprms, NS_sprm::LN_PShd, NS_ooxml::LN_CT_Shd_fill, pValue); -- cgit