Fix segfault

Make sure histogramRGBArea isn't null before using it.
This commit is contained in:
Lawrence Lee
2020-09-26 12:40:14 -07:00
parent 1a5456dbd1
commit 0ad5f9587f

View File

@@ -295,7 +295,9 @@ HistogramPanel::HistogramPanel () :
type_changed();
updateHistAreaOptions();
updateHistRGBAreaOptions();
if (histogramRGBArea) {
updateHistRGBAreaOptions();
}
setExpandAlignProperties(showRed , false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
setExpandAlignProperties(showGreen, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);