diff --git a/limereport/items/lrchartaxiseditor.ui b/limereport/items/lrchartaxiseditor.ui index 0647ca5..35dda3c 100755 --- a/limereport/items/lrchartaxiseditor.ui +++ b/limereport/items/lrchartaxiseditor.ui @@ -118,7 +118,7 @@ - -9999999.000000000000000 + 0.000000000000000 9999999.990000000223517 @@ -209,4 +209,4 @@ slotAddSeries() slotDeleteSeries() - \ No newline at end of file + diff --git a/limereport/lraxisdata.cpp b/limereport/lraxisdata.cpp index f256fb9..692003c 100644 --- a/limereport/lraxisdata.cpp +++ b/limereport/lraxisdata.cpp @@ -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(); }