diff --git a/src/Lyrics.cpp b/src/Lyrics.cpp index bddb92c3f..7bc8e65c6 100644 --- a/src/Lyrics.cpp +++ b/src/Lyrics.cpp @@ -83,7 +83,7 @@ IMPLEMENT_CLASS(Lyrics, wxPanel) Lyrics::Lyrics(wxWindow* parent, wxWindowID id, const wxPoint& pos /*= wxDefaultPosition*/, const wxSize& size /*= wxDefaultSize*/): - wxPanel(parent, id, pos, size, wxWANTS_CHARS), + wxPanelWrapper(parent, id, pos, size, wxWANTS_CHARS), mWidth(size.x), mHeight(size.y) { mKaraokeHeight = mHeight; diff --git a/src/Lyrics.h b/src/Lyrics.h index b2424dd60..8bed9e58a 100644 --- a/src/Lyrics.h +++ b/src/Lyrics.h @@ -58,7 +58,7 @@ private: DECLARE_EVENT_TABLE() }; -class Lyrics final : public wxPanel +class Lyrics final : public wxPanelWrapper { DECLARE_DYNAMIC_CLASS(Lyrics)