fixed Display_Infos

This commit is contained in:
dickelbeck 2008-03-11 05:41:33 +00:00
parent 263d80fe08
commit 51ed187432
1 changed files with 8 additions and 1 deletions

View File

@ -167,7 +167,14 @@ void TEXTE_PCB::Display_Infos( WinEDA_DrawFrame* frame )
{
wxString msg;
BOARD* board = (BOARD*) m_Parent;
BOARD* board;
BOARD_ITEM* parent = (BOARD_ITEM*) m_Parent;
wxASSERT( parent );
if( parent->Type() == TYPECOTATION )
board = (BOARD*) parent->m_Parent;
else
board = (BOARD*) parent;
wxASSERT( board );
frame->MsgPanel->EraseMsgBox();