mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Fix of the previous commit: Fix compilation on Linux.
This commit is contained in:
		
							parent
							
								
									473233019c
								
							
						
					
					
						commit
						8089631f10
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -97,7 +97,7 @@ void PresetCollection::update_editor_ui(wxBitmapComboBox *ui)
 | 
			
		|||
 | 
			
		||||
    size_t      n_visible       = this->num_visible();
 | 
			
		||||
    size_t      n_choice        = size_t(ui->GetCount());
 | 
			
		||||
    std::string name_selected   = ui->GetStringSelection().ToUTF8();
 | 
			
		||||
    std::string name_selected   = ui->GetStringSelection().ToUTF8().data();
 | 
			
		||||
    if (boost::algorithm::iends_with(name_selected, g_suffix_modified))
 | 
			
		||||
        // Remove the g_suffix_modified.
 | 
			
		||||
        name_selected.erase(name_selected.end() - g_suffix_modified.size(), name_selected.end());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,7 @@ public:
 | 
			
		|||
        TYPE_PRINTER,
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    Preset(Type type, const std::string &name, bool is_default = false) : type(type), name(name), is_default(is_default) {}
 | 
			
		||||
    Preset(Type type, const std::string &name, bool is_default = false) : type(type), is_default(is_default), name(name) {}
 | 
			
		||||
 | 
			
		||||
    Type                type        = TYPE_INVALID;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -54,7 +54,7 @@ public:
 | 
			
		|||
    DynamicPrintConfig& load(const std::vector<std::string> &keys);
 | 
			
		||||
 | 
			
		||||
    // Set the is_dirty flag if the provided config is different from the active one.
 | 
			
		||||
    bool                set_dirty(const DynamicPrintConfig &config) { this->is_dirty = ! this->config.diff(config).empty(); }
 | 
			
		||||
    void                set_dirty(const DynamicPrintConfig &config) { this->is_dirty = ! this->config.diff(config).empty(); }
 | 
			
		||||
    void                reset_dirty() { this->is_dirty = false; }
 | 
			
		||||
    bool                enable_compatible(const std::string &active_printer);
 | 
			
		||||
};
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue