diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-19 14:06:11 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-02-19 22:49:20 +0100 |
commit | fdb64187338accfcbd9a30892a4e4a05359e8ace (patch) | |
tree | ae4bb0047bbc2e5bdf8eca74b858d633a9699d8b | |
parent | 6820d27efa146afc84b1bffdba208168b84b9444 (diff) | |
download | logdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.tar.gz logdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.tar.xz logdiag-fdb64187338accfcbd9a30892a4e4a05359e8ace.zip |
Reset view to center for new diagrams.
-rw-r--r-- | src/ld-window-main.c | 3 |
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); |