diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-23 10:41:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-24 13:24:48 +0200 |
commit | 3b655ae8314ab4dc5ab56f933231a7ecbcb33238 (patch) | |
tree | 2df2322305804be8db18cd4d4643578c37f6d988 /sw | |
parent | b8fbb46b0d65cdca007a200c4a882030c2bf8dc9 (diff) |
should be using upper_bound here
after commit 1feb59c3dd9e5f714ce894f8de31bbb6869c9f3b
Change-Id: I5dde1a776c11b9755e33cd7ccae54f29045b5ea1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117697
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 5dc94ff60e82..f6ccbb799b92 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -2085,7 +2085,7 @@ std::pair<SwFrameFormats::ByTypeAndName::const_iterator, SwFrameFormats::ByTypeA SwFrameFormats::findRangeByName( const OUString& rName ) const { auto it = m_TypeAndNameIndex.lower_bound( boost::make_tuple(rName, sal_uInt16(0)) ); - auto itEnd = m_TypeAndNameIndex.lower_bound( boost::make_tuple(rName, SAL_MAX_UINT16) ); + auto itEnd = m_TypeAndNameIndex.upper_bound( boost::make_tuple(rName, SAL_MAX_UINT16) ); return { it, itEnd }; } |