diff options
Diffstat (limited to 'sc/source/ui/namedlg')
-rw-r--r-- | sc/source/ui/namedlg/namedefdlg.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/namedlg/namedefdlg.cxx b/sc/source/ui/namedlg/namedefdlg.cxx index 5be3ddc7de25..3304f4d39b08 100644 --- a/sc/source/ui/namedlg/namedefdlg.cxx +++ b/sc/source/ui/namedlg/namedefdlg.cxx @@ -125,11 +125,15 @@ bool ScNameDefDlg::IsNameValid() ScRangeName* pRangeName = nullptr; if(aScope == maGlobalNameStr) { - pRangeName = maRangeMap.find(STR_GLOBAL_RANGE_NAME)->second; + const auto iter = maRangeMap.find(STR_GLOBAL_RANGE_NAME); + assert(iter != maRangeMap.end()); + pRangeName = iter->second; } else { - pRangeName = maRangeMap.find(aScope)->second; + const auto iter = maRangeMap.find(aScope); + assert(iter != maRangeMap.end()); + pRangeName = iter->second; } ScRangeData::IsNameValidType eType; |