mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
ColorPrint improvement
+ Select "Color Print" preview type if it's not after add/delete new color change + Added level heights to the color legend instead of "Color N"
This commit is contained in:
parent
4c8f3f6ea7
commit
f203f6fbd9
6 changed files with 35 additions and 9 deletions
|
@ -1444,10 +1444,14 @@ void PrusaDoubleSlider::get_size(int *w, int *h)
|
|||
is_horizontal() ? *w -= m_lock_icon_dim : *h -= m_lock_icon_dim;
|
||||
}
|
||||
|
||||
double PrusaDoubleSlider::get_double_value(const SelectedSlider& selection) const
|
||||
double PrusaDoubleSlider::get_double_value(const SelectedSlider& selection)
|
||||
{
|
||||
if (m_values.empty())
|
||||
return 0.0;
|
||||
if (m_values.size() <= m_higher_value) {
|
||||
correct_higher_value();
|
||||
return m_values.back().second;
|
||||
}
|
||||
return m_values[selection == ssLower ? m_lower_value : m_higher_value].second;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue