summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-24 09:28:19 +0200
committerAndras Timar <andras.timar@collabora.com>2017-02-27 11:23:30 +0100
commit39bd07d63f9ca3a0bcff96051dd234e9fe6af381 (patch)
tree4043e51174c8ff0e57154b1a3a17347f5886f04a /forms
parent2df0902dc403d7c01c0a7e571c8dfe102887e9c0 (diff)
tdf#103830 Form field names not update in python macro
regression from commit 5f15cc01b31ccaed0c6482a36556dece084ce302 "new loplugin: use more efficient find() methods" Regression found by Aron Budea. Change-Id: I0e84376dfd754738de97882979058f86c2476bd6 Reviewed-on: https://gerrit.libreoffice.org/34600 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr> (cherry picked from commit 3a404ea870f1eed86f9765447ce0a364d39ae8f8) Reviewed-on: https://gerrit.libreoffice.org/34602 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 858aa013061fb179e68c90a9dce6341a352b17c1)
Diffstat (limited to 'forms')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 63aee56f9d5d..383030b7b726 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -680,9 +680,9 @@ throw (css::uno::RuntimeException, std::exception) {
{
::osl::MutexGuard aGuard( m_rMutex );
OInterfaceMap::iterator i = m_aMap.find(::comphelper::getString(evt.OldValue));
- if (i != m_aMap.end() && (*i).second != evt.Source)
+ if (i != m_aMap.end() && i->second == evt.Source)
{
- css::uno::Reference<css::uno::XInterface> xCorrectType((*i).second);
+ css::uno::Reference<css::uno::XInterface> xCorrectType(i->second);
m_aMap.erase(i);
m_aMap.insert(::std::pair<const OUString, css::uno::Reference<css::uno::XInterface> >(::comphelper::getString(evt.NewValue),xCorrectType));
}