From a5f20d4c71e7d9fb9b77e80ff48fa67881848ae4 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 9 Nov 2021 12:52:44 +0100 Subject: [PATCH] MsgDialog: Delete redundant code (fix for https://github.com/prusa3d/PrusaSlicer/issues/7254) --- src/slic3r/GUI/MsgDialog.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/slic3r/GUI/MsgDialog.cpp b/src/slic3r/GUI/MsgDialog.cpp index bc17dd9cec..2515f0281b 100644 --- a/src/slic3r/GUI/MsgDialog.cpp +++ b/src/slic3r/GUI/MsgDialog.cpp @@ -55,11 +55,7 @@ MsgDialog::MsgDialog(wxWindow *parent, const wxString &title, const wxString &he btn_sizer->Add(button); } - if (! bitmap.IsOk()) { - bitmap = create_scaled_bitmap("PrusaSlicer_192px.png", this, 192); - } - - logo = new wxStaticBitmap(this, wxID_ANY, wxNullBitmap); + logo = new wxStaticBitmap(this, wxID_ANY, bitmap.IsOk() ? bitmap : wxNullBitmap); topsizer->Add(logo, 0, wxALL, BORDER); topsizer->Add(rightsizer, 1, wxTOP | wxBOTTOM | wxRIGHT | wxEXPAND, BORDER);