aboutsummaryrefslogtreecommitdiff
path: root/src/gui_peaksearch.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-25 17:24:04 +0200
committerThomas White <taw@physics.org>2020-08-25 17:24:04 +0200
commite6dd5c670fe12ea1ba8db5cecbd7cc87ff50c54f (patch)
treeb10289e2b202e1aa9f84fdd181e15217493c6103 /src/gui_peaksearch.c
parent295b6184171bdd230e5e61f0ba2ad26d504062a8 (diff)
Fix show peaks/refls logic
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r--src/gui_peaksearch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index c3444fe4..97df46b4 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -52,6 +52,9 @@ void update_peaks(struct crystfelproject *proj)
if ( proj->cur_image == NULL ) return;
if ( proj->stream != NULL ) return;
+ crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview),
+ proj->show_peaks);
+
if ( proj->show_peaks ) {
image_feature_list_free(proj->cur_image->features);
@@ -114,9 +117,6 @@ void update_peaks(struct crystfelproject *proj)
}
- crystfel_image_view_set_show_peaks(CRYSTFEL_IMAGE_VIEW(proj->imageview),
- 1);
-
crystfel_image_view_set_image(CRYSTFEL_IMAGE_VIEW(proj->imageview),
proj->cur_image);
}