Kaydet (Commit) 1f4674c7 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#113230 crash in finishParagraph

Change-Id: I94535a51a87be097ff7356edff935877b42c3272
Reviewed-on: https://gerrit.libreoffice.org/43598Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 4d5bbf08
...@@ -4857,7 +4857,10 @@ void DomainMapper_Impl::StartOrEndBookmark( const OUString& rId ) ...@@ -4857,7 +4857,10 @@ void DomainMapper_Impl::StartOrEndBookmark( const OUString& rId )
{ {
uno::Reference< text::XTextCursor > xCursor = xTextAppend->createTextCursorByRange( xTextAppend->getEnd() ); uno::Reference< text::XTextCursor > xCursor = xTextAppend->createTextCursorByRange( xTextAppend->getEnd() );
if(!bIsAfterDummyPara) if (!xCursor)
return;
if (!bIsAfterDummyPara)
bIsStart = !xCursor->goLeft(1, false); bIsStart = !xCursor->goLeft(1, false);
xCurrent = xCursor->getStart(); xCurrent = xCursor->getStart();
} }
......
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