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:29 +0200 |
commit | 30f57a9e59fd35e872ae9d8ddd7b319e467abb74 (patch) | |
tree | 95831a7db7131b1621956afb4a5d44c41e5c0597 | |
parent | 84d88ac8dc1763280ec45d0c341b1658d4af14b6 (diff) |
ofz#7043 already registered
Change-Id: Ic94891c82944d04fe3391c0bd0731a6e3e4373e0
Reviewed-on: https://gerrit.libreoffice.org/51692
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 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; } |