mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 21:02:02 +08:00
Fixed compilation on Linux (gcc 9.4.0)
This commit is contained in:
parent
d389ce91f6
commit
82a0c09a57
@ -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>
|
||||
|
@ -13,6 +13,7 @@
|
||||
class wxListBox;
|
||||
class wxTextCtrl;
|
||||
class ScalableButton;
|
||||
class wxStaticText;
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user