mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:26:03 +08:00
Fixed couple of compiler warnings
This commit is contained in:
parent
74a6ae3f1d
commit
208082381a
@ -561,7 +561,6 @@ void DSForLayers::render_edit_menu()
|
||||
if (!m_show_edit_menu)
|
||||
return;
|
||||
|
||||
const ImVec2 icon_sz = ImVec2(14, 14);
|
||||
if (m_ticks.has_tick(m_ctrl.GetActivePos()) && ImGui::BeginPopup("edit_menu_popup")) {
|
||||
std::set<TickCode>::iterator it = m_ticks.ticks.find(TickCode{ m_ctrl.GetActivePos()});
|
||||
|
||||
|
@ -387,7 +387,6 @@ void MainFrame::update_layout()
|
||||
layout == ESettingsLayout::Dlg ? State::toDlg : State::noUpdate;
|
||||
#endif //__WXMSW__
|
||||
|
||||
ESettingsLayout old_layout = m_layout;
|
||||
m_layout = layout;
|
||||
|
||||
// From the very beginning the Print settings should be selected
|
||||
|
@ -836,7 +836,7 @@ std::pair<BoundingBoxf3, Transform3d> Selection::get_bounding_box_in_reference_s
|
||||
// workaround to avoid a crash, see spe-2295 -> Crash when re-cutting with dowel connectors
|
||||
const int obj_id = vol.object_idx();
|
||||
const int vol_id = vol.volume_idx();
|
||||
if (m_model->objects[obj_id]->volumes.size() <= vol_id)
|
||||
if (int(m_model->objects[obj_id]->volumes.size()) <= vol_id)
|
||||
continue;
|
||||
mesh = &m_model->objects[vol.object_idx()]->volumes[vol.volume_idx()]->mesh();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user