diff options
author | Daria Volvenkova <d.volvenkova@corp.mail.ru> | 2018-03-23 19:05:10 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-04-06 15:59:42 +0300 |
commit | 71298a534e5fe5f00785d1897c8715afc23cb68f (patch) | |
tree | d458dd7934b8e96d25d45f69be3c9cf6815401d9 /qt | |
parent | 59797a467ca935ab43dca4b3386de6db0088a99a (diff) |
Support new KMB format.
Diffstat (limited to 'qt')
-rw-r--r-- | qt/draw_widget.cpp | 6 |
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() |