sw/source/core/doc/docfmt.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 3b655ae8314ab4dc5ab56f933231a7ecbcb33238 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Jun 23 10:41:12 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Jun 24 13:24:48 2021 +0200 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.gran...@collabora.co.uk> 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 }; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits