diff options
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r-- | src/gui_peaksearch.c | 6 |
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); } |