summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-21 09:18:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-21 13:21:11 +0100
commitbee825957a15bd8ef5bbcaf2dcb6fb812bd7de6c (patch)
treefefe5e227b86e518bdd8d91e929c872df22f444d /lotuswordpro
parentbec100c0742101f9fd378f21b20f0721262bfd32 (diff)
ofz#7043 already registered
Change-Id: Ic94891c82944d04fe3391c0bd0731a6e3e4373e0 Reviewed-on: https://gerrit.libreoffice.org/51691 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro')
-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 919b257be043..f1f74a25420c 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;
}