KIWAY::Player() wxASSERT
This commit is contained in:
parent
59d7303b03
commit
99a19d27cb
|
@ -241,16 +241,17 @@ KIWAY_PLAYER* KIWAY::Player( FRAME_T aFrameType, bool doCreate )
|
||||||
if( doCreate )
|
if( doCreate )
|
||||||
{
|
{
|
||||||
FACE_T face_type = KifaceType( aFrameType );
|
FACE_T face_type = KifaceType( aFrameType );
|
||||||
|
|
||||||
wxASSERT( face_type != FACE_T(-1) );
|
wxASSERT( face_type != FACE_T(-1) );
|
||||||
|
|
||||||
KIFACE* kiface = KiFACE( face_type );
|
KIFACE* kiface = KiFACE( face_type );
|
||||||
|
|
||||||
wxASSERT( kiface );
|
wxASSERT( kiface );
|
||||||
|
|
||||||
KIWAY_PLAYER* frame = (KIWAY_PLAYER*) kiface->CreateWindow( m_top, aFrameType, this, KFCTL_PROJECT_SUITE );
|
if( kiface )
|
||||||
|
{
|
||||||
|
KIWAY_PLAYER* frame = (KIWAY_PLAYER*) kiface->CreateWindow( m_top, aFrameType, this, KFCTL_PROJECT_SUITE );
|
||||||
|
|
||||||
return m_player[aFrameType] = frame;
|
return m_player[aFrameType] = frame;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue