summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-21 09:18:21 +0000
committerAndras Timar <andras.timar@collabora.com>2018-04-07 13:23:28 +0200
commita46b40b217b616da5916383c6330fcf53380f70d (patch)
tree2e76f6d5978f0f927244b4404dd5f0d4672db909 /lotuswordpro
parent3895a8b0b72fea8d195e9286b0cf9f4c8398ed22 (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> (cherry picked from commit 20ca0794bbac17e47eda9379b15513c780453566)
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 6cb34aa2167a..ed7db90da9df 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;
}