[core] Reset zoom history state in still mode

This commit is contained in:
Bruno de Oliveira Abinader
2017-09-12 07:20:59 -04:00
parent 0f9773e615
commit 45d07163eb
2 changed files with 15 additions and 2 deletions

View File

@@ -62,4 +62,10 @@ TEST(API, ZoomHistory) {
// ZoomHistory.lastIntegerZoom should be 0.
map->setZoom(0.5);
test::checkImage("test/fixtures/zoom_history", frontend.render(*map), 0.0002);
map->setZoom(1.0);
frontend.render(*map);
map->setZoom(0.5);
test::checkImage("test/fixtures/zoom_history", frontend.render(*map), 0.0002);
}