From f5bdc410981a5b344b187e6e6ba992ec708b49cd Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Sun, 1 Feb 2026 10:59:54 +0100 Subject: [PATCH] jfjoch_viewer: Fix auto-contrast information lost after reanalyzing image --- reader/JFJochReaderImage.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/reader/JFJochReaderImage.cpp b/reader/JFJochReaderImage.cpp index 90f0bdef..b5c98073 100644 --- a/reader/JFJochReaderImage.cpp +++ b/reader/JFJochReaderImage.cpp @@ -22,12 +22,20 @@ JFJochReaderImage::JFJochReaderImage(const DataMessage &in_message, } JFJochReaderImage::JFJochReaderImage(const JFJochReaderImage &other) - : dataset(other.dataset), - image(other.image), - message(other.message), - saturated_pixel(other.saturated_pixel), - error_pixel(other.error_pixel), - valid_pixel(other.valid_pixel) { + : dataset(other.dataset), + image(other.image), + message(other.message), + saturated_pixel(other.saturated_pixel), + error_pixel(other.error_pixel), + valid_pixel(other.valid_pixel), + valid_min(other.valid_min), + valid_max(other.valid_max), + valid_count(other.valid_count), + has_valid(other.has_valid), + top_pixels_acc(other.top_pixels_acc), + top_pixels(other.top_pixels), + count_histogram(other.count_histogram), + auto_foreground(other.auto_foreground) { // Need to make image use local copy message.image = CompressedImage(image, dataset->experiment.GetXPixelsNum(), dataset->experiment.GetYPixelsNum());