summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/waypoint_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/waypoint_gui.cpp b/src/waypoint_gui.cpp
index f6965eb98..71c96b7fb 100644
--- a/src/waypoint_gui.cpp
+++ b/src/waypoint_gui.cpp
@@ -110,7 +110,7 @@ public:
int x = TileX(this->wp->xy) * TILE_SIZE;
int y = TileY(this->wp->xy) * TILE_SIZE;
- ScrollWindowTo(x, y, -1, this);
+ ScrollWindowTo(x, y, -1, this, true);
}
virtual void OnResize()
@@ -118,6 +118,7 @@ public:
if (this->viewport != NULL) {
NWidgetViewport *nvp = this->GetWidget<NWidgetViewport>(WAYPVW_VIEWPORT);
nvp->UpdateViewportCoordinates(this);
+ this->wp->UpdateVirtCoord();
}
}