summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-21 09:18:21 +0000
committerMichael Stahl <Michael.Stahl@cib.de>2018-04-04 16:58:32 +0200
commit20ca0794bbac17e47eda9379b15513c780453566 (patch)
tree318c4808baf5c26684ea16905973727ee7118e61
parentbd89b70a2f7ecccfa2edc965121c4b5976e54db9 (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.lwpbin0 -> 15012 bytes
-rw-r--r--lotuswordpro/source/filter/lwpfrib.cxx2
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
new file mode 100644
index 000000000000..f3419f45b369
--- /dev/null
+++ b/lotuswordpro/qa/cppunit/data/fail/registered-1.lwp
Binary files differ
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;
}