mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 03:39:09 +08:00
Fixed bug introduced with 4d483f323f732ceccf6e581e160b962aa49d09f5
This commit is contained in:
parent
10fb75edf0
commit
d9be78d4cb
@ -629,9 +629,7 @@ wxString Control::get_label(int tick, LabelType label_type/* = ltHeightWithLayer
|
||||
return wxString::Format("%d", static_cast<unsigned int>(m_values[value]));
|
||||
else {
|
||||
if (label_type == ltEstimatedTime) {
|
||||
if (value > m_layers_times.size() - 1)
|
||||
return wxEmptyString;
|
||||
return short_and_splitted_time(get_time_dhms(m_layers_times[value]));
|
||||
return (value < m_layers_times.size()) ? short_and_splitted_time(get_time_dhms(m_layers_times[value])) : "";
|
||||
}
|
||||
wxString str = m_values.empty() ?
|
||||
wxString::Format("%.*f", 2, m_label_koef * value) :
|
||||
|
Loading…
x
Reference in New Issue
Block a user