From fdb64187338accfcbd9a30892a4e4a05359e8ace Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 19 Feb 2011 14:06:11 +0100
Subject: Reset view to center for new diagrams.
---
src/ld-window-main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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);
--
cgit v1.2.3-70-g09d2