diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-21 09:18:21 +0000 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-04-04 16:58:32 +0200 |
commit | 20ca0794bbac17e47eda9379b15513c780453566 (patch) | |
tree | 318c4808baf5c26684ea16905973727ee7118e61 | |
parent | bd89b70a2f7ecccfa2edc965121c4b5976e54db9 (diff) |
ofz#7043 already registered
Change-Id: Ic94891c82944d04fe3391c0bd0731a6e3e4373e0
Reviewed-on: https://gerrit.libreoffice.org/51693
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r-- | lotuswordpro/qa/cppunit/data/fail/registered-1.lwp | bin | 0 -> 15012 bytes | |||
-rw-r--r-- | lotuswordpro/source/filter/lwpfrib.cxx | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lotuswordpro/qa/cppunit/data/fail/registered-1.lwp b/lotuswordpro/qa/cppunit/data/fail/registered-1.lwp Binary files differnew file mode 100644 index 000000000000..f3419f45b369 --- /dev/null +++ b/lotuswordpro/qa/cppunit/data/fail/registered-1.lwp diff --git a/lotuswordpro/source/filter/lwpfrib.cxx b/lotuswordpro/source/filter/lwpfrib.cxx index baebf753ed03..f97d9041f9c9 100644 --- a/lotuswordpro/source/filter/lwpfrib.cxx +++ b/lotuswordpro/source/filter/lwpfrib.cxx @@ -451,6 +451,8 @@ XFColor LwpFrib::GetHighlightColor() void LwpFrib::Register(std::map<LwpFrib*,OUString>* pFribMap) { + if (m_pFribMap) + throw std::runtime_error("registered already"); m_pFribMap = pFribMap; } |