From 4ecc0e465926c663e629837bb9c0b05f78674c61 Mon Sep 17 00:00:00 2001 From: vng Date: Sun, 29 Jul 2012 21:28:56 -0700 Subject: [PATCH] [search] Assign feature type to name if name is empty. --- search/result.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/search/result.cpp b/search/result.cpp index 661b3a6b4a..8ae7ea1cd8 100644 --- a/search/result.cpp +++ b/search/result.cpp @@ -14,7 +14,10 @@ Result::Result(string const & str, string const & region, { // Features with empty names can be found after suggestion. if (m_str.empty()) - m_str = "-"; + { + //m_str = "-"; + m_str = type; + } } Result::Result(string const & str, string const & suggestionStr)