reset paragraph properties on shape start

This commit is contained in:
Miklos Vajna 2011-07-07 11:17:10 +02:00
parent e19a2d6fe9
commit b4a14ff63d

View file

@ -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.