Fix segfault
Make sure histogramRGBArea isn't null before using it.
This commit is contained in:
@@ -295,7 +295,9 @@ HistogramPanel::HistogramPanel () :
|
|||||||
|
|
||||||
type_changed();
|
type_changed();
|
||||||
updateHistAreaOptions();
|
updateHistAreaOptions();
|
||||||
updateHistRGBAreaOptions();
|
if (histogramRGBArea) {
|
||||||
|
updateHistRGBAreaOptions();
|
||||||
|
}
|
||||||
|
|
||||||
setExpandAlignProperties(showRed , false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
setExpandAlignProperties(showRed , false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||||
setExpandAlignProperties(showGreen, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
setExpandAlignProperties(showGreen, false, false, Gtk::ALIGN_START, Gtk::ALIGN_CENTER);
|
||||||
|
Reference in New Issue
Block a user