summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-24 17:12:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-25 14:38:11 +0100
commit8386f83263c38f3aa3c57ecaa8f44e5a94ccfa4d (patch)
tree3fb70570ca4135261b9f0cf314df8704faa35f0d /reportdesign
parent23b348e153f0181471f642b86e8f6f19e91b09ac (diff)
coverity#705111 Using invalid iterator
Change-Id: I613849da7d38c18b30e35534365e7bcb93aeedac
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/sdr/PropertyForward.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/core/sdr/PropertyForward.cxx b/reportdesign/source/core/sdr/PropertyForward.cxx
index 4c48427b48fa..b3971554e430 100644
--- a/reportdesign/source/core/sdr/PropertyForward.cxx
+++ b/reportdesign/source/core/sdr/PropertyForward.cxx
@@ -127,7 +127,7 @@ void SAL_CALL OPropertyMediator::propertyChange( const PropertyChangeEvent& evt
if ( aFind != m_aNameMap.end() )
sPropName = aFind->first;
}
- if ( !sPropName.isEmpty() && xPropInfo->hasPropertyByName(sPropName) )
+ if (aFind != m_aNameMap.end() && !sPropName.isEmpty() && xPropInfo->hasPropertyByName(sPropName))
xProp->setPropertyValue(sPropName,aFind->second.second->operator()(sPropName,evt.NewValue));
else if ( evt.PropertyName == PROPERTY_CHARFONTNAME
|| evt.PropertyName == PROPERTY_CHARFONTSTYLENAME