mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Temporary (for testing) crash fixing on get_label from PrusaDoubleSlider
This commit is contained in:
@@ -1384,6 +1384,8 @@ wxString PrusaDoubleSlider::get_label(const SelectedSlider& selection) const
|
||||
|
||||
if (m_label_koef == 1.0 && m_values.empty())
|
||||
return wxString::Format("%d", value);
|
||||
if (value >= m_values.size())
|
||||
return "ErrVal";
|
||||
|
||||
const wxString str = m_values.empty() ?
|
||||
wxNumberFormatter::ToString(m_label_koef*value, 2, wxNumberFormatter::Style_None) :
|
||||
|
||||
Reference in New Issue
Block a user