Skip to content

Commit

Permalink
Fix legend min/max inversion
Browse files Browse the repository at this point in the history
  • Loading branch information
supermerill committed Apr 30, 2024
1 parent 5ff40d0 commit cf28d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/GCodeViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4405,14 +4405,14 @@ void GCodeViewer::render_legend(float& legend_height)
imgui.text(min_label);
ImGui::SameLine();
ImGui::PushItemWidth(imgui.get_style_scaling() * size);
ImGui::InputFloat(m_extrusions.ranges.min_max_cstr_id[size_t(m_view_type)].second.c_str(), &mod_max, 0.0f,
ImGui::InputFloat(m_extrusions.ranges.min_max_cstr_id[size_t(m_view_type)].second.c_str(), &mod_min, 0.0f,
0.0f, format.c_str(), ImGuiInputTextFlags_CharsDecimal, 0.f);
// draw max
ImGui::SameLine();
imgui.text(max_label);
ImGui::SameLine();
ImGui::PushItemWidth(imgui.get_style_scaling() * size);
ImGui::InputFloat(m_extrusions.ranges.min_max_cstr_id[size_t(m_view_type)].first.c_str(), &mod_min, 0.0f,
ImGui::InputFloat(m_extrusions.ranges.min_max_cstr_id[size_t(m_view_type)].first.c_str(), &mod_max, 0.0f,
0.0f, format.c_str(), ImGuiInputTextFlags_CharsDecimal, 0.f);

} else {
Expand Down

0 comments on commit cf28d25

Please sign in to comment.