[Libreoffice-commits] core.git: lotuswordpro/qa lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sun Apr 3 20:40:17 UTC 2016
lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp |binary
lotuswordpro/source/filter/xfilter/xfcell.cxx | 5 ++---
2 files changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 9814cf713c57b211f5632733a853150d1d1e8da9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Apr 3 21:35:26 2016 +0100
subtable corruption is possible
Change-Id: Ifbf4312df583724a22328491bea3b6e05b82418f
diff --git a/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp b/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp
new file mode 100644
index 0000000..3d906ee
Binary files /dev/null and b/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp differ
diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx
index 2a81548..a8bd647 100644
--- a/lotuswordpro/source/filter/xfilter/xfcell.cxx
+++ b/lotuswordpro/source/filter/xfilter/xfcell.cxx
@@ -88,10 +88,9 @@ void XFCell::Add(XFContent *pContent)
Reset();
m_eValueType = enumXFValueTypeNone;
}
- if( m_pSubTable )
+ if (m_pSubTable)
{
- assert(false);
- return;
+ throw std::runtime_error("subtable already set");
}
if (!pContent)
{
More information about the Libreoffice-commits
mailing list