From a4f5c35a9d3732e73a0daa184066f57871d413e5 Mon Sep 17 00:00:00 2001 From: vng Date: Mon, 9 Jul 2012 00:41:47 -0700 Subject: [PATCH] Fix bug with country matching by prefix name. --- storage/country_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/country_info.cpp b/storage/country_info.cpp index 88fc5a7afd..b7343ff706 100644 --- a/storage/country_info.cpp +++ b/storage/country_info.cpp @@ -155,7 +155,7 @@ namespace storage for (IterT i = m_countries.begin(); i != m_countries.end(); ++i) { - if (i->m_name.find(prefix) != string::npos) + if (i->m_name.find(prefix) == 0) toDo(*i); }