Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qt/draw_widget.cpp')
-rw-r--r--qt/draw_widget.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qt/draw_widget.cpp b/qt/draw_widget.cpp
index 9827ecb051..244fced1bc 100644
--- a/qt/draw_widget.cpp
+++ b/qt/draw_widget.cpp
@@ -372,8 +372,10 @@ void DrawWidget::SubmitBookmark(m2::PointD const & pt)
{
if (!m_framework.GetBookmarkManager().HasBmCategory(m_bookmarksCategoryId))
m_bookmarksCategoryId = m_framework.GetBookmarkManager().CreateBookmarkCategory("Desktop_bookmarks");
- BookmarkData data("", "placemark-red");
- m_framework.GetBookmarkManager().GetEditSession().CreateBookmark(m_framework.P3dtoG(pt), data, m_bookmarksCategoryId);
+ kml::BookmarkData data;
+ data.m_color.m_predefinedColor = kml::PredefinedColor::Red;
+ data.m_point = m_framework.P3dtoG(pt);
+ m_framework.GetBookmarkManager().GetEditSession().CreateBookmark(data, m_bookmarksCategoryId);
}
void DrawWidget::FollowRoute()