FIX: crash when print by object with multi-objects

jira: none
Change-Id: If69324f3a01a0f0001fb05488cb91f0f74a08071
This commit is contained in:
zhimin.zeng 2025-02-26 10:44:02 +08:00 committed by lane.wei
parent 01460cae76
commit ec11e25b43
1 changed files with 14 additions and 11 deletions

View File

@ -1501,6 +1501,9 @@ void IMSlider::correct_higher_value()
bool IMSlider::is_wipe_tower_layer(int tick) const
{
// BBS: This function is useless in BBS
return false;
if (!m_is_wipe_tower || tick >= (int) m_values.size()) return false;
if (tick == 0 || (tick == (int) m_values.size() - 1 && m_values[tick] > m_values[tick - 1])) return false;
if ((m_values[tick - 1] == m_values[tick + 1] && m_values[tick] < m_values[tick + 1]) ||