From 52df95bc2b70bf526dac50940dbb402470a73171 Mon Sep 17 00:00:00 2001 From: Filip Leonarski Date: Fri, 28 Nov 2025 15:01:39 +0100 Subject: [PATCH] jfjoch_viewer: Fix auto contrast --- docs/CHANGELOG.md | 6 ++++++ viewer/image_viewer/JFJochDiffractionImage.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2437bf1f..93a5e284 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog +## 1.0.0-rc.111 +This is an UNSTABLE release. + +* jfjoch_viewer: Remove 3D lattice viewer (not really useful at this moment) +* jfjoch_viewer: Fix auto contrast not refreshing image + ## 1.0.0-rc.110 This is an UNSTABLE release. diff --git a/viewer/image_viewer/JFJochDiffractionImage.cpp b/viewer/image_viewer/JFJochDiffractionImage.cpp index 803d8be8..205069f9 100644 --- a/viewer/image_viewer/JFJochDiffractionImage.cpp +++ b/viewer/image_viewer/JFJochDiffractionImage.cpp @@ -326,6 +326,7 @@ void JFJochDiffractionImage::setAutoForeground(bool input) { // If auto_foreground is not set, then view stays with the current settings till these are explicitly changed foreground = image->GetAutoContrastValue(); emit foregroundChanged(foreground); + GeneratePixmap(); Redraw(); } emit autoForegroundChanged(auto_fg);