diff options
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/crstrvl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx index ab6c2d41f9a8..898f56b118bc 100644 --- a/sw/source/core/crsr/crstrvl.cxx +++ b/sw/source/core/crsr/crstrvl.cxx @@ -635,7 +635,7 @@ lcl_FindField(bool & o_rFound, _SetGetExpFlds const& rSrtLst, _SetGetExpFlds::const_iterator it = rSrtLst.lower_bound(pSrch.get()); - o_rFound = (**it == *pSrch); + o_rFound = (it == rSrtLst.end()) ? false : (**it == *pSrch); return it; } |