diff --git a/common/kiway.cpp b/common/kiway.cpp index 9004566f14..d8e93a00d5 100644 --- a/common/kiway.cpp +++ b/common/kiway.cpp @@ -246,6 +246,8 @@ KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate ) KIFACE* kiface = KiFACE( face_type ); + wxASSERT( kiface ); + KIWAY_PLAYER* frame = (KIWAY_PLAYER*) kiface->CreateWindow( m_top, aFrameType, this, KFCTL_PROJECT_SUITE ); return m_player[aFrameType] = frame;