diff options
author | Thomas White <taw@physics.org> | 2020-07-02 16:44:04 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:53:44 +0200 |
commit | 6d5c80f94fdf613e37559861800600c1bffd5449 (patch) | |
tree | 1c343e76f876c06da42e0dc1a509beb389150e0e /src/gui_peaksearch.c | |
parent | 7a1043dc12309e7bc5fcaa3594033341a67185e0 (diff) |
Store the actual DataTemplate in GUI project struct
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r-- | src/gui_peaksearch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c index 5d4903cd..eedb558d 100644 --- a/src/gui_peaksearch.c +++ b/src/gui_peaksearch.c @@ -54,12 +54,10 @@ void update_peaks(struct crystfelproject *proj) if ( proj->show_peaks ) { struct image *image; - const DataTemplate *dtempl; image = crystfel_image_view_get_image_struct(CRYSTFEL_IMAGE_VIEW(proj->imageview)); if ( image == NULL ) return; - dtempl = crystfel_image_view_get_datatemplate(CRYSTFEL_IMAGE_VIEW(proj->imageview)); image_feature_list_free(image->features); image->features = NULL; @@ -90,7 +88,7 @@ void update_peaks(struct crystfelproject *proj) case PEAK_HDF5: case PEAK_CXI: - image->features = image_read_peaks(dtempl, + image->features = image_read_peaks(proj->dtempl, image->filename, image->ev, proj->peak_search_params.half_pixel_shift); |