|
|
@ -2472,7 +2472,8 @@ void CGroupMap::updateMatchedLandmarks()
|
|
|
|
std::vector<std::pair<string,string> > params;
|
|
|
|
std::vector<std::pair<string,string> > params;
|
|
|
|
params.clear();
|
|
|
|
params.clear();
|
|
|
|
params.push_back(std::pair<string,string>("id", toString("lm%d", k)));
|
|
|
|
params.push_back(std::pair<string,string>("id", toString("lm%d", k)));
|
|
|
|
params.push_back(std::pair<string,string>("tooltip", _MatchedLandmarks[k].Title.toUtf8()));
|
|
|
|
// ctrl base expects utf8 string to start with "u:"
|
|
|
|
|
|
|
|
params.push_back(std::pair<string,string>("tooltip", "u:" + _MatchedLandmarks[k].Title.toUtf8()));
|
|
|
|
params.push_back(std::pair<string,string>("index", toString(k)));
|
|
|
|
params.push_back(std::pair<string,string>("index", toString(k)));
|
|
|
|
|
|
|
|
|
|
|
|
CInterfaceGroup *g = CWidgetManager::getInstance()->getParser()->createGroupInstance("lm_search_result", pL->getId(), params);
|
|
|
|
CInterfaceGroup *g = CWidgetManager::getInstance()->getParser()->createGroupInstance("lm_search_result", pL->getId(), params);
|
|
|
@ -2680,7 +2681,7 @@ void CGroupMap::setLandmarkFilter(const std::string &s)
|
|
|
|
if (!s.empty()) {
|
|
|
|
if (!s.empty()) {
|
|
|
|
ucstring ucs;
|
|
|
|
ucstring ucs;
|
|
|
|
ucs.fromUtf8(s);
|
|
|
|
ucs.fromUtf8(s);
|
|
|
|
splitUCString(toLower(s), ucstring(" "), _LandmarkFilter);
|
|
|
|
splitUCString(toLower(ucs), ucstring(" "), _LandmarkFilter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// recreate landmarks
|
|
|
|
// recreate landmarks
|
|
|
|