diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-04-17 18:30:28 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-04-17 18:31:00 +0300 |
commit | eae657616209159bfc768178b1626a57a457e840 (patch) | |
tree | 6b46298f4f57cf78335303945dc9d9476a1d1954 /src/slic3r/GUI/Field.cpp | |
parent | 79e71cb8d3c6582837be903aba373f6d2407491e (diff) |
Fix default bitmap loading in Field
Diffstat (limited to 'src/slic3r/GUI/Field.cpp')
-rw-r--r-- | src/slic3r/GUI/Field.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index d77405230..6da0800d9 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -45,8 +45,7 @@ void Field::PostInitialize() m_Undo_to_sys_btn->Bind(wxEVT_BUTTON, ([this](wxCommandEvent) { on_back_to_sys_value(); })); //set default bitmap - wxBitmap bmp; - bmp.LoadFile(from_u8(var("bullet_white.png")), wxBITMAP_TYPE_PNG); + wxBitmap bmp = create_scaled_bitmap(m_parent, "bullet_white.png"); set_undo_bitmap(&bmp); set_undo_to_sys_bitmap(&bmp); |