Do not show anything in vertical slider if estimated times are missing

This commit is contained in:
enricoturri1966 2020-11-24 12:00:46 +01:00
parent b2ab5db69b
commit 1ce8cddbda

View File

@ -630,7 +630,7 @@ wxString Control::get_label(int tick, LabelType label_type/* = ltHeightWithLayer
else { else {
if (label_type == ltEstimatedTime) { if (label_type == ltEstimatedTime) {
if (m_values.size() != m_layers_times.size()) if (m_values.size() != m_layers_times.size())
return "time"; return wxEmptyString;
return short_and_splitted_time(get_time_dhms(m_layers_times[value])); return short_and_splitted_time(get_time_dhms(m_layers_times[value]));
} }
wxString str = m_values.empty() ? wxString str = m_values.empty() ?