summaryrefslogtreecommitdiff
path: root/svx/source/smarttags/SmartTagMgr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-19 16:01:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-20 08:00:32 +0200
commit35e80e9726b5fee6a00caa58349a4b5d924dad7c (patch)
tree3f92cdee5079affdc40b73f26845d73e9a994412 /svx/source/smarttags/SmartTagMgr.cxx
parenta3143aa0dec78177e522858fbf786494c75512a0 (diff)
when calling std::lower_bound
it's not enough to compare != end(), you also need to compare the key against the iterator result Change-Id: Ide5f151ba2297a35e5546f47fbc3c53cbe5ab533 Reviewed-on: https://gerrit.libreoffice.org/62014 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/smarttags/SmartTagMgr.cxx')
-rw-r--r--svx/source/smarttags/SmartTagMgr.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/smarttags/SmartTagMgr.cxx b/svx/source/smarttags/SmartTagMgr.cxx
index 2265ffd6aa84..8ffebc7cc27d 100644
--- a/svx/source/smarttags/SmartTagMgr.cxx
+++ b/svx/source/smarttags/SmartTagMgr.cxx
@@ -180,7 +180,7 @@ OUString SmartTagMgr::GetSmartTagCaption( const OUString& rSmartTagType, const c
{
OUString aRet;
- auto aLower = maSmartTagMap.lower_bound( rSmartTagType );
+ auto aLower = maSmartTagMap.find( rSmartTagType );
if ( aLower != maSmartTagMap.end() )
{