diff options
Diffstat (limited to 'map/bookmark.cpp')
-rw-r--r-- | map/bookmark.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/map/bookmark.cpp b/map/bookmark.cpp index 95c1cd3499..e7a0ba957f 100644 --- a/map/bookmark.cpp +++ b/map/bookmark.cpp @@ -281,25 +281,25 @@ namespace bookmark_impl { if (currTag == "name") m_name = value; - else if (currTag == "description") - { - LOG(LINFO, (value)); - m_description = value; - } else if (currTag == "styleUrl") m_type = GetSupportedBMType(value); + else if (currTag == "description") + m_description = value; } - else if (prevTag == "Point") - { - if (currTag == "coordinates") - SetOrigin(value); - } - else if (prevTag == "ExtendedData") + else if (count > 3 && m_tags[2] == "Placemark") { - if (currTag == "mwm:scale") + if (prevTag == "Point") + { + if (currTag == "coordinates") + SetOrigin(value); + } + else if (prevTag == "ExtendedData") { - if (!strings::to_double(value, m_scale)) - m_scale = -1.0; + if (currTag == "mwm:scale") + { + if (!strings::to_double(value, m_scale)) + m_scale = -1.0; + } } } } |