Skip to content

Commit

Permalink
gui: fix crash on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
bk138 committed Jan 5, 2025
1 parent 61c30be commit 2dea779
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/gui/MyFrameMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ MyFrameMain::MyFrameMain(wxWindow* parent, int id, const wxString& title,
EnableFullScreenView();


// assign image list to notebook_connections
notebook_connections->AssignImageList(new wxImageList(24, 24));
notebook_connections->GetImageList()->Add(bitmapBundleFromSVGResource("unicast").GetBitmapFor(this));
notebook_connections->GetImageList()->Add(bitmapBundleFromSVGResource("multicast").GetBitmapFor(this));

// assign images to notebook_connections
wxVector<wxBitmapBundle> images;
images.push_back(bitmapBundleFromSVGResource("unicast"));
images.push_back(bitmapBundleFromSVGResource("multicast"));
notebook_connections->SetImages(images);

/*
setup menu items for the frame
Expand Down

0 comments on commit 2dea779

Please sign in to comment.