diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-04 18:59:43 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-04 22:10:20 +0100 |
commit | 67c2a4786154a5c246998f119c3349e4d725e43b (patch) | |
tree | 57885eb692217e500373220564cbd1e3dff9c2e4 /toolkit | |
parent | 8472365774b7471e96a025f424a6c7eb7b02db26 (diff) |
cid#1545597 Using invalid iterator
and :
cid#1545537 Using invalid iterator
cid#1545508 Using invalid iterator
cid#1545494 Using invalid iterator
cid#1545478 Using invalid iterator
cid#1545427 Using invalid iterator
cid#1545420 Using invalid iterator
cid#1545400 Using invalid iterator
cid#1545300 Using invalid iterator
cid#1545258 Using invalid iterator
cid#1545257 Using invalid iterator
cid#1545200 Using invalid iterator
cid#1545183 Using invalid iterator
Change-Id: Ibf3a41902f34286967195c5c3b22e337a4b06809
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160322
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/unocontrolmodel.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/toolkit/source/controls/unocontrolmodel.cxx b/toolkit/source/controls/unocontrolmodel.cxx index de573b11e1a5..0868fc2f6a26 100644 --- a/toolkit/source/controls/unocontrolmodel.cxx +++ b/toolkit/source/controls/unocontrolmodel.cxx @@ -1167,7 +1167,9 @@ void UnoControlModel::getFastPropertyValue( std::unique_lock<std::mutex>& /*rGua rValue = *pProp; else if ( ( nPropId >= BASEPROPERTY_FONTDESCRIPTORPART_START ) && ( nPropId <= BASEPROPERTY_FONTDESCRIPTORPART_END ) ) { - pProp = &( maData.find( BASEPROPERTY_FONTDESCRIPTOR )->second ); + const auto iter = maData.find( BASEPROPERTY_FONTDESCRIPTOR ); + assert(iter != maData.end()); + pProp = &(iter->second); css::awt::FontDescriptor aFD; (*pProp) >>= aFD; switch ( nPropId ) |