Commit 51ed1874 authored by dickelbeck's avatar dickelbeck

fixed Display_Infos

parent 263d80fe
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment