forcepoint #21 pop on empty stack

Thanks to Antti Levomäki and Christian Jalio from Forcepoint.

Change-Id: I0aac834a60224b33e5d33d08abd7fb056ef9d52a
Reviewed-on: https://gerrit.libreoffice.org/50973
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2018-03-08 21:05:51 +00:00
parent c056813410
commit a4617d76a5
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View file

@ -2254,7 +2254,8 @@ void DomainMapper_Impl::PopShapeContext()
if ( !m_aAnchoredStack.top().bToRemove )
{
RemoveLastParagraph();
m_aTextAppendStack.pop();
if (!m_aTextAppendStack.empty())
m_aTextAppendStack.pop();
}
uno::Reference< text::XTextContent > xObj = m_aAnchoredStack.top( ).xTextContent;