Fixed layer Z rounding for ticks on DoubleSlider

This commit is contained in:
YuSanka 2019-09-04 11:36:26 +02:00
parent 7211562f25
commit 200ac4c35e

View File

@ -2217,7 +2217,7 @@ void DoubleSlider::SetTicksValues(const std::vector<double>& heights)
m_ticks.clear();
unsigned int i = 0;
for (auto h : heights) {
while (i < m_values.size() && m_values[i].second - 1e-6 < h)
while (i < m_values.size() && m_values[i].second - EPSILON/*1e-6*/ < h)
++i;
// don't miss last layer if it is
if (i == m_values.size() && fabs(m_values[i-1].second - h) > EPSILON)