diff options
author | Thomas White <taw@physics.org> | 2021-02-23 16:02:34 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-23 16:02:34 +0100 |
commit | 8d0b642f67a2068ca9caad99b78dbd28950f33f6 (patch) | |
tree | ab9919d3b16d9c9e76400bf08d12457d933deac7 /src/crystfel_gui.c | |
parent | ba297b8c672e9058cc727ed2c81679760aad98b5 (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.c | 1 |
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); |