Fixed compilation on Linux (gcc 9.4.0)

This commit is contained in:
Lukas Matena 2023-09-13 09:04:50 +02:00
parent d389ce91f6
commit 82a0c09a57
4 changed files with 4 additions and 1 deletions

View File

@ -37,6 +37,7 @@
#include <boost/foreach.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/nowide/cenv.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/nowide/iostream.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/property_tree/ini_parser.hpp>

View File

@ -13,6 +13,7 @@
class wxListBox;
class wxTextCtrl;
class ScalableButton;
class wxStaticText;
namespace Slic3r {

View File

@ -28,6 +28,7 @@
#include <regex>
#include <future>
#include <boost/algorithm/string.hpp>
#include <boost/nowide/cstdio.hpp>
#include <boost/optional.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/filesystem/path.hpp>

View File

@ -2456,7 +2456,7 @@ void TabFilament::load_current_preset()
m_extruders_cb->Select(m_active_extruder);
}
assert(m_active_extruder >= 0 && m_active_extruder < m_preset_bundle->extruders_filaments.size());
assert(m_active_extruder >= 0 && size_t(m_active_extruder) < m_preset_bundle->extruders_filaments.size());
const std::string& selected_extr_filament_name = m_preset_bundle->extruders_filaments[m_active_extruder].get_selected_preset_name();
if (selected_extr_filament_name != selected_filament_name) {
m_presets->select_preset_by_name(selected_extr_filament_name, false);