aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-02-19 14:06:11 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-02-19 22:49:20 +0100
commitfdb64187338accfcbd9a30892a4e4a05359e8ace (patch)
treeae4bb0047bbc2e5bdf8eca74b858d633a9699d8b
parent6820d27efa146afc84b1bffdba208168b84b9444 (diff)
downloadlogdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.tar.gz
logdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.tar.xz
logdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.zip
Reset view to center for new diagrams.
-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);