[guides on map] zoom-out from incorrect place is fixed.

This commit is contained in:
Arsentiy Milchakov 2020-10-21 09:42:28 +03:00 committed by Anatoliy V. Tomilov
parent 33c525de3f
commit 715aa34bc5

View file

@ -74,7 +74,7 @@ void GuidesManager::SetStateListener(GuidesStateChangedFn const & onStateChanged
void GuidesManager::UpdateViewport(ScreenBase const & screen)
{
m_lastShownViewport = m_screen.GlobalRect();
m_lastShownViewport = screen.GlobalRect();
auto const zoom = df::GetDrawTileScale(screen);
if (m_state == GuidesState::Disabled || m_state == GuidesState::FatalNetworkError)