aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ld-window-main.c3
1 files changed, 3 insertions, 0 deletions
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;
}