Removed histogramAspect in favor of histogramHeight, which sets the panelheight properly and consistently on restarting.

This commit is contained in:
Thanatomanic
2018-06-29 21:56:06 +02:00
parent 32e2aa2e6c
commit da5fd6fac8
4 changed files with 12 additions and 11 deletions

View File

@@ -247,9 +247,6 @@ HistogramPanel::~HistogramPanel ()
void HistogramPanel::resized (Gtk::Allocation& req)
{
// Store current aspect ratio of the histogram
options.histogramAspect = histogramArea->get_height() / (float)histogramArea->get_width();
histogramArea->updateBackBuffer ();
histogramArea->queue_draw ();
@@ -266,6 +263,10 @@ void HistogramPanel::resized (Gtk::Allocation& req)
histogramRGBArea->updateBackBuffer(-1, -1, -1);
histogramRGBArea->queue_draw ();
}
// Store current height of the histogram
options.histogramHeight = get_height();
}
void HistogramPanel::red_toggled ()