0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Fixed normal axis scale for negative values

This commit is contained in:
Emil Sawicki
2022-03-14 15:02:56 +01:00
parent 8135ca07cf
commit b08fc0a044
2 changed files with 4 additions and 4 deletions

View File

@@ -75,7 +75,7 @@ void AxisData::updateForDesignMode()
{
m_minValue = 0;
m_maxValue = 40;
bool tmp = m_calculateAxisScale;
const bool tmp = m_calculateAxisScale;
m_calculateAxisScale = false;
update();
m_calculateAxisScale = tmp;
@@ -237,7 +237,7 @@ void AxisData::calculateSimpleAxisScale()
while (max % m_segmentCount != 0){
max++;
}
m_rangeMax = max;
m_rangeMax = minValue() + max;
m_step = max / m_segmentCount;
m_rangeMin = minValue();
}