Reset view to center for new diagrams.

This commit is contained in:
Přemysl Eric Janouch 2011-02-19 14:06:11 +01:00
parent 6820d27efa
commit fdb6418733

View File

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