mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-05 20:56:16 +08:00
Fixed how bitmap was instantiated, forgot a }
This commit is contained in:
parent
d4f73ff1aa
commit
991c601d8f
@ -97,7 +97,7 @@ void PresetEditor::select_preset_by_name(const wxString& name, bool force) {
|
||||
PresetPage* PresetEditor::add_options_page(const wxString& _title, const wxString& _icon) {
|
||||
|
||||
if (_icon.size() > 0) {
|
||||
auto* bitmap { new wxBitmap(var(_icon), wxBITMAP_TYPE_PNG);
|
||||
auto bitmap { wxBitmap(var(_icon), wxBITMAP_TYPE_PNG) };
|
||||
this->_icons->Add(bitmap);
|
||||
this->_iconcount += 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user