[Libreoffice-commits] core.git: writerfilter/source
Miklos Vajna
vmiklos at suse.cz
Mon Jul 22 00:17:12 PDT 2013
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 9f7676033585ab3bf352d5dc2ef43a3a9d8d5c46
Author: Miklos Vajna <vmiklos at 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();
}
More information about the Libreoffice-commits
mailing list