From e9554854c107e5cabbd209eed661130fa51603a6 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 8 Jul 2012 01:45:42 -0700 Subject: [PATCH] Fixed default bookmark symbol name --- map/map_tests/bookmarks_test.cpp | 6 +++--- qt/search_panel.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/map/map_tests/bookmarks_test.cpp b/map/map_tests/bookmarks_test.cpp index 1a6759a6fe..3ba6ed6f3a 100644 --- a/map/map_tests/bookmarks_test.cpp +++ b/map/map_tests/bookmarks_test.cpp @@ -110,9 +110,9 @@ UNIT_TEST(Bookmarks_Getting) // This is not correct because Framework::OnSize doesn't work until SetRenderPolicy is called. //TEST(m2::AlmostEqual(m2::PointD(400, 200), pixC), (pixC)); - fm.AddBookmark("cat1", Bookmark(m2::PointD(38, 20), "1", "red")); - fm.AddBookmark("cat2", Bookmark(m2::PointD(41, 20), "2", "red")); - fm.AddBookmark("cat3", Bookmark(m2::PointD(41, 40), "3", "red")); + fm.AddBookmark("cat1", Bookmark(m2::PointD(38, 20), "1", "placemark-red")); + fm.AddBookmark("cat2", Bookmark(m2::PointD(41, 20), "2", "placemark-red")); + fm.AddBookmark("cat3", Bookmark(m2::PointD(41, 40), "3", "placemark-red")); Bookmark const * bm = fm.GetBookmark(pixC, 1.0); TEST(bm != 0, ()); diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index e0aca7f4f1..645092ce0a 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -131,7 +131,7 @@ void SearchPanel::OnSearchResult(ResultsT * res) if (e.GetResultType() == ResultT::RESULT_FEATURE) { // For debug purposes: add bookmarks for search results - frm.AddBookmark("Search", Bookmark(e.GetFeatureCenter(), e.GetString(), "red")); + frm.AddBookmark("Search", Bookmark(e.GetFeatureCenter(), e.GetString(), "placemark-red")); m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(e.GetFeatureType())));