Reset view position on opening a file

This commit is contained in:
Přemysl Eric Janouch 2021-11-02 11:28:48 +01:00
parent baaca4c58f
commit de291ffddb
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}