summaryrefslogtreecommitdiffstats
path: root/writerfilter/source/rtftok
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-24 14:40:53 +0200
committerMichael Stahl <mstahl@redhat.com>2015-07-24 15:15:57 +0200
commita61fd02c819433a1206b3b3e61017ba2d0d3d467 (patch)
tree7a78ffde13e7d083b3a754b65c903de4cf7ad2de /writerfilter/source/rtftok
parent-Werror,-Wunused-private-field (diff)
downloadcore-a61fd02c819433a1206b3b3e61017ba2d0d3d467.tar.gz
core-a61fd02c819433a1206b3b3e61017ba2d0d3d467.zip
tdf#90046: RTF import: ensure that a run is started before \footnote
Avoids crashing with empty context stacks. Change-Id: I0ee8b457fdbb19b55f5c15876b7253680cde6e23
Diffstat (limited to 'writerfilter/source/rtftok')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 43c73c279b01..8b251585704d 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -1675,6 +1675,7 @@ RTFError RTFDocumentImpl::dispatchDestination(RTFKeyword nKeyword)
}
break;
case RTF_FOOTNOTE:
+ checkFirstRun();
if (!m_pSuperstream)
{
Id nId = NS_ooxml::LN_footnote;