From de291ffddb3c92252199dc424d68c2adc84c53f8 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 2 Nov 2021 11:28:48 +0100 Subject: Reset view position on opening a file --- src/ld-window-main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ld-window-main.c b/src/ld-window-main.c index 51769f6..7acd319 100644 --- a/src/ld-window-main.c +++ b/src/ld-window-main.c @@ -757,6 +757,9 @@ diagram_open (LdWindowMain *self, const gchar *filename) ld_diagram_set_modified (self->priv->diagram, FALSE); diagram_set_filename (self, g_strdup (filename)); + + ld_diagram_view_set_x (self->priv->view, 0); + ld_diagram_view_set_y (self->priv->view, 0); return TRUE; } -- cgit v1.2.3-70-g09d2