From b4a14ff63d52e25cd2f19cabc74c6fba42bd1dab Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 7 Jul 2011 11:17:10 +0200 Subject: [PATCH] reset paragraph properties on shape start --- writerfilter/source/rtftok/rtfdocumentimpl.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index 1b0211b565d7..f9505a8e6061 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -939,9 +939,10 @@ int RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword) break; case RTF_SHPTXT: m_aStates.top().nDestinationState = DESTINATION_SHAPETEXT; + dispatchFlag(RTF_PARD); + m_bNeedPap = true; OSL_ENSURE(!m_aShapetextBuffer.size(), "shapetext buffer is not empty"); m_pCurrentBuffer = &m_aShapetextBuffer; - m_bNeedPap = true; break; case RTF_LISTTEXT: // Should be ignored by any reader that understands Word 97 through Word 2007 numbering.