aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ld-window-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ld-window-main.c b/src/ld-window-main.c
index 3599da6..1c1f7fe 100644
--- a/src/ld-window-main.c
+++ b/src/ld-window-main.c
@@ -536,7 +536,8 @@ diagram_new (LdWindowMain *self)
ld_diagram_clear (self->priv->diagram);
ld_diagram_set_modified (self->priv->diagram, FALSE);
- /* TODO: Reset view to the center. */
+ ld_diagram_view_set_x (self->priv->view, 0);
+ ld_diagram_view_set_y (self->priv->view, 0);
ld_diagram_view_set_zoom (self->priv->view, 1);
diagram_set_filename (self, NULL);