diff options
author | FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com> | 2016-09-23 16:02:16 +0300 |
---|---|---|
committer | FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com> | 2016-09-23 16:32:45 +0300 |
commit | 573dcc5c5d57f667e789e506612a7cc3ae3e396e (patch) | |
tree | 6989aef2c44870673738156ba13e73544071112a /map | |
parent | d3d31901b1b98c7dc1f6cebb6d5be69decd34710 (diff) |
Add padding on the bounding box generated when ShowTrack framework function is called.
Diffstat (limited to 'map')
-rw-r--r-- | map/framework.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/map/framework.cpp b/map/framework.cpp index 09e428f08e..3f1df6d483 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -815,8 +815,13 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc) void Framework::ShowTrack(Track const & track) { + double const kPaddingScale = 1.2; + StopLocationFollow(); - ShowRect(track.GetLimitRect()); + auto rect = track.GetLimitRect(); + rect.Scale(kPaddingScale); + + ShowRect(rect); } void Framework::ClearBookmarks() |