Fixed couple of compiler warnings

This commit is contained in:
Lukas Matena 2024-05-22 11:23:44 +02:00
parent 74a6ae3f1d
commit 208082381a
3 changed files with 1 additions and 3 deletions

View File

@ -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()});

View File

@ -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

View File

@ -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();
}