From 82187ae60e760127b818fa2fc5d75fc7995c6ab6 Mon Sep 17 00:00:00 2001 From: Roel Baars <6567747+Thanatomanic@users.noreply.github.com> Date: Sun, 23 Sep 2018 16:21:46 +0200 Subject: [PATCH] Fix for #4829 - RGB bar shows when it shouldn't --- rtgui/histogrampanel.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/rtgui/histogrampanel.cc b/rtgui/histogrampanel.cc index e50a4a72a..0205920d5 100644 --- a/rtgui/histogrampanel.cc +++ b/rtgui/histogrampanel.cc @@ -443,7 +443,7 @@ bool HistogramRGBArea::getShow() void HistogramRGBArea::updateBackBuffer (int r, int g, int b, const Glib::ustring &profile, const Glib::ustring &profileW) { - if (!get_realized () || !showMode) { + if (!get_realized () || !showMode || rawmode) { return; } @@ -606,10 +606,6 @@ void HistogramRGBArea::updateOptions (bool r, bool g, bool b, bool l, bool c, bo barDisplayed = false; } - // Disable (but don't hide it) the bar button when RAW histogram is displayed - if (rawMode) { - showMode = false; - } } void HistogramRGBArea::on_realize ()