summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-10-17 11:17:14 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-10-17 12:03:08 +0200
commit6fc868c6535932bedfa0fc51d8dd5a1814d73ee8 (patch)
tree5c4bfa68546686d18fa066a447804bc0956b18ba /writerfilter/source/rtftok
parent76737b0fe2e8afa3248ceee5025415c807d8687b (diff)
fix import of RTF_PARD inside RTF_SHPTXT
Change-Id: Id722b61cec9b8ae6550122e192affecadfcb1217
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index d0d0b7f893b1..b6a1121ce4b4 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2001,7 +2001,8 @@ int RTFDocumentImpl::dispatchFlag(RTFKeyword nKeyword)
m_aStates.top().aParagraphSprms = m_aDefaultState.aParagraphSprms;
m_aStates.top().aParagraphAttributes = m_aDefaultState.aParagraphAttributes;
m_aStates.top().resetFrame();
- m_pCurrentBuffer = 0;
+ if (m_aStates.top().nDestinationState != DESTINATION_SHAPETEXT)
+ m_pCurrentBuffer = 0;
break;
case RTF_SECTD:
m_aStates.top().aSectionSprms = m_aDefaultState.aSectionSprms;