Add padding on the bounding box generated when ShowTrack framework function is called.

This commit is contained in:
FILLAU Jean-Maxime 2016-09-23 15:02:16 +02:00
parent d3d31901b1
commit 573dcc5c5d

View file

@ -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()