From eae657616209159bfc768178b1626a57a457e840 Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Wed, 17 Apr 2019 17:30:28 +0200 Subject: [PATCH] Fix default bitmap loading in Field --- src/slic3r/GUI/Field.cpp | 3 +-- 1 file changed, 1 insertion(+), 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);