writerfilter/source/dmapper/DomainMapper_Impl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 9f7676033585ab3bf352d5dc2ef43a3a9d8d5c46 Author: Miklos Vajna <vmik...@suse.cz> Date: Mon Jul 22 09:10:15 2013 +0200 writerfilter: make sure the redline stack always has at least one element One element is pushed to that stack in the constructor, so calling top() on it always OK, as long as we check during pop() that the stack won't be empty. Change-Id: I010bd77897ab2a3684e7d9c5c0450e7bda626fc0 diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index cc1dfba..fb7b8fc 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -1635,6 +1635,11 @@ void DomainMapper_Impl::PopFootOrEndnote() if (!m_aTextAppendStack.empty()) m_aTextAppendStack.pop(); + if (m_aRedlines.size() == 1) + { + SAL_WARN("writerfilter", "PopFootOrEndnote() is called without PushFootOrEndnote()?"); + return; + } m_aRedlines.pop(); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits