mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Fix weird wxWidgets>=3.0
error message.
ASSERT INFO: /usr/include/wx-3.0/wx/object.h(160): assert "wxDynamicCast(ptr, T)" failed in wxCheckCast(): wxStaticCast() used incorrectly
This commit is contained in:
committed by
Rafael Kitover
parent
7f1a3a932c
commit
8f48c1f01d
@@ -705,7 +705,7 @@ PrintDialog::PrintDialog(const uint16_t* data, int lines, bool cont):
|
||||
npw(1),
|
||||
nph(1)
|
||||
{
|
||||
dlg = wxStaticCast(wxGetApp().frame->FindWindow(XRCID("GBPrinter")), wxDialog);
|
||||
dlg = wxStaticCast(wxGetApp().frame->FindWindowByName("GBPrinter"), wxDialog);
|
||||
p = XRCCTRL(*dlg, "Preview", wxPanel);
|
||||
wxScrolledWindow* pp = wxStaticCast(p->GetParent(), wxScrolledWindow);
|
||||
wxSize sz(320, lines * 2);
|
||||
|
Reference in New Issue
Block a user