diff --git a/geometry/any_rect2d.hpp b/geometry/any_rect2d.hpp index 52db34833d..c6d284902c 100644 --- a/geometry/any_rect2d.hpp +++ b/geometry/any_rect2d.hpp @@ -254,4 +254,10 @@ namespace m2 typedef AnyRect AnyRectD; typedef AnyRect AnyRectF; + + template + inline string DebugPrint(m2::AnyRect const & r) + { + return DebugPrint(r.GetGlobalRect()); + } } diff --git a/map/framework.cpp b/map/framework.cpp index 596144293a..d6df4a4c4a 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1415,11 +1415,11 @@ bool Framework::SetViewportByURL(string const & url) if (info.IsValid()) { - ShowRectExVisibleScale(info.GetViewport()); Bookmark bm(info.GetMercatorPoint(), m_stringsBundle.GetString("dropped_pin"), DEFAULT_BOOKMARK_TYPE); m_bmManager.AdditionalPoiLayerClear(); m_bmManager.AdditionalPoiLayerAddPoi(bm); - Invalidate(); + // Invalidate is called inside this function + ShowRectExVisibleScale(info.GetViewport()); return true; }