mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
Fixed normal axis scale for negative values
This commit is contained in:
parent
8135ca07cf
commit
b08fc0a044
@ -118,7 +118,7 @@
|
|||||||
<item row="2" column="2">
|
<item row="2" column="2">
|
||||||
<widget class="QDoubleSpinBox" name="stepSpinBox">
|
<widget class="QDoubleSpinBox" name="stepSpinBox">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<double>-9999999.000000000000000</double>
|
<double>0.000000000000000</double>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum">
|
<property name="maximum">
|
||||||
<double>9999999.990000000223517</double>
|
<double>9999999.990000000223517</double>
|
||||||
@ -209,4 +209,4 @@
|
|||||||
<slot>slotAddSeries()</slot>
|
<slot>slotAddSeries()</slot>
|
||||||
<slot>slotDeleteSeries()</slot>
|
<slot>slotDeleteSeries()</slot>
|
||||||
</slots>
|
</slots>
|
||||||
</ui>
|
</ui>
|
||||||
|
@ -75,7 +75,7 @@ void AxisData::updateForDesignMode()
|
|||||||
{
|
{
|
||||||
m_minValue = 0;
|
m_minValue = 0;
|
||||||
m_maxValue = 40;
|
m_maxValue = 40;
|
||||||
bool tmp = m_calculateAxisScale;
|
const bool tmp = m_calculateAxisScale;
|
||||||
m_calculateAxisScale = false;
|
m_calculateAxisScale = false;
|
||||||
update();
|
update();
|
||||||
m_calculateAxisScale = tmp;
|
m_calculateAxisScale = tmp;
|
||||||
@ -237,7 +237,7 @@ void AxisData::calculateSimpleAxisScale()
|
|||||||
while (max % m_segmentCount != 0){
|
while (max % m_segmentCount != 0){
|
||||||
max++;
|
max++;
|
||||||
}
|
}
|
||||||
m_rangeMax = max;
|
m_rangeMax = minValue() + max;
|
||||||
m_step = max / m_segmentCount;
|
m_step = max / m_segmentCount;
|
||||||
m_rangeMin = minValue();
|
m_rangeMin = minValue();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user