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:
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);
|
||||
|
|
Loading…
Reference in New Issue