mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps] Change CurveViewRange::computeGridUnit parameters
This commit is contained in:
@@ -250,7 +250,7 @@ void HistogramController::initBarParameters() {
|
||||
}
|
||||
maxValue = minValue >= maxValue ? minValue + std::pow(10.0f, std::floor(std::log10(std::fabs(minValue)))-1.0f) : maxValue;
|
||||
m_store->setFirstDrawnBarAbscissa(minValue);
|
||||
float barWidth = m_store->computeGridUnit(CurveViewRange::Axis::X, minValue, maxValue);
|
||||
float barWidth = m_store->computeGridUnit(CurveViewRange::Axis::X, maxValue - minValue);
|
||||
if (barWidth <= 0.0f) {
|
||||
barWidth = 1.0f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user