aboutsummaryrefslogtreecommitdiff
path: root/src/crystfel_gui.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-23 16:02:34 +0100
committerThomas White <taw@physics.org>2021-02-23 16:02:34 +0100
commit8d0b642f67a2068ca9caad99b78dbd28950f33f6 (patch)
treeab9919d3b16d9c9e76400bf08d12457d933deac7 /src/crystfel_gui.c
parentba297b8c672e9058cc727ed2c81679760aad98b5 (diff)
Centre image at start (or on zoom reset)
This just sets the scroll bars to the middle position, which is not necessarily the middle of the detector. Still, it's better than starting at the edge every time.
Diffstat (limited to 'src/crystfel_gui.c')
-rw-r--r--src/crystfel_gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 5d71172e..daac90ab 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -1022,6 +1022,7 @@ int main(int argc, char *argv[])
proj.cur_frame = 0;
update_imageview(&proj);
+ crystfel_image_view_reset_zoom(CRYSTFEL_IMAGE_VIEW(proj.imageview));
toolbar = gtk_hbox_new(FALSE, 0.0);