abi#4817 attempt to access an element in an empty container

Change-Id: Ic51ef8b3db182dd34195c9bb808170d20953d406
This commit is contained in:
Miklos Vajna
2013-06-11 16:14:50 +02:00
parent e75a8b8eff
commit a4fee33b23
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{\rtf1
\super
{
\par
\par }
}

View File

@@ -4591,7 +4591,7 @@ int RTFDocumentImpl::popState()
if (aState.pCurrentBuffer == &m_aSuperBuffer)
{
OSL_ASSERT(m_aStates.top().pCurrentBuffer == 0);
OSL_ASSERT(!m_aStates.empty() && m_aStates.top().pCurrentBuffer == 0);
if (!m_bHasFootnote)
replayBuffer(m_aSuperBuffer);