Kaydet (Commit) ec83990d authored tarafından Miklos Vajna's avatar Miklos Vajna

DomainMapper_Impl::finishParagraph: also handle insert of multi-para frames

Change-Id: Id2e761ab1c9fc9c5fd0837d1801af95674d0f99a
üst 3e2ab7da
...@@ -1012,7 +1012,7 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap ) ...@@ -1012,7 +1012,7 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap )
else if(*rAppendContext.pLastParagraphProperties == *pParaContext ) else if(*rAppendContext.pLastParagraphProperties == *pParaContext )
{ {
//handles (7) //handles (7)
rAppendContext.pLastParagraphProperties->SetEndingRange(xTextAppend->getEnd()); rAppendContext.pLastParagraphProperties->SetEndingRange(rAppendContext.xInsertPosition.is() ? rAppendContext.xInsertPosition : xTextAppend->getEnd());
bKeepLastParagraphProperties = true; bKeepLastParagraphProperties = true;
} }
else else
...@@ -1058,6 +1058,8 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap ) ...@@ -1058,6 +1058,8 @@ void DomainMapper_Impl::finishParagraph( PropertyMapPtr pPropertyMap )
{ {
xTextRange = xTextAppend->finishParagraphInsert( aProperties, rAppendContext.xInsertPosition ); xTextRange = xTextAppend->finishParagraphInsert( aProperties, rAppendContext.xInsertPosition );
rAppendContext.xCursor->gotoNextParagraph(false); rAppendContext.xCursor->gotoNextParagraph(false);
if (rAppendContext.pLastParagraphProperties.get())
rAppendContext.pLastParagraphProperties->SetEndingRange(xTextRange->getEnd());
} }
else else
xTextRange = xTextAppend->finishParagraph( aProperties ); xTextRange = xTextAppend->finishParagraph( aProperties );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment