Now it works: histogram always shows gridlines for 8 stops in log-log mode

This commit is contained in:
Thanatomanic 2018-07-05 08:29:37 +02:00
parent 7960e07bfe
commit 4dd85ea875

View File

@ -887,8 +887,8 @@ void HistogramArea::updateBackBuffer ()
int nrOfHGridPartitions = (int)rtengine::min (16.0, pow (2.0, floor ((h - 100) / 250) + 2)); int nrOfHGridPartitions = (int)rtengine::min (16.0, pow (2.0, floor ((h - 100) / 250) + 2));
int nrOfVGridPartitions = (int)rtengine::min (16.0, pow (2.0, floor ((w - 100) / 250) + 2)); int nrOfVGridPartitions = (int)rtengine::min (16.0, pow (2.0, floor ((w - 100) / 250) + 2));
if (rawMode || options.histogramDrawMode == 2) { if (options.histogramDrawMode == 2) {
nrOfVGridPartitions = 8; // always show 8 stops for the raw histogam and in log-log mode nrOfVGridPartitions = 8; // always show 8 stops in log-log mode
} }
// draw vertical gridlines // draw vertical gridlines