diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-04-03 21:35:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-03 21:39:47 +0100 |
commit | 9814cf713c57b211f5632733a853150d1d1e8da9 (patch) | |
tree | 486b8b308d93aa416ac5e8c3b9df1ca545408ae8 /lotuswordpro | |
parent | 917e3656e920caed61f0ecfc156cd2f8e470087e (diff) |
subtable corruption is possible
Change-Id: Ifbf4312df583724a22328491bea3b6e05b82418f
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp | bin | 0 -> 83439 bytes | |||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfcell.cxx | 5 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp b/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp Binary files differnew file mode 100644 index 000000000000..3d906ee68459 --- /dev/null +++ b/lotuswordpro/qa/cppunit/data/fail/subtable-1.lwp diff --git a/lotuswordpro/source/filter/xfilter/xfcell.cxx b/lotuswordpro/source/filter/xfilter/xfcell.cxx index 2a81548eda6b..a8bd647b4f08 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) { |