hide pageFmts[] since it is no longer NULL terminated and not global
This commit is contained in:
parent
1f3b3d681c
commit
a20c89288f
|
@ -51,7 +51,7 @@
|
|||
// the translated and the not translated version.
|
||||
// when displayed in dialog we should explicitely call wxGetTranslation()
|
||||
// to show the translated version.
|
||||
const wxString pageFmts[] =
|
||||
static const wxString pageFmts[] =
|
||||
{
|
||||
_("A4 210x297mm"),
|
||||
_("A3 297x420mm"),
|
||||
|
|
|
@ -111,17 +111,18 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
|
|||
void TEXTE_PCB::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
|
||||
{
|
||||
wxString msg;
|
||||
BOARD* board;
|
||||
BOARD_ITEM* parent = (BOARD_ITEM*) m_Parent;
|
||||
|
||||
#if defined(DEBUG)
|
||||
BOARD_ITEM* parent = (BOARD_ITEM*) m_Parent;
|
||||
wxASSERT( parent );
|
||||
|
||||
BOARD* board;
|
||||
if( parent->Type() == PCB_DIMENSION_T )
|
||||
board = (BOARD*) parent->GetParent();
|
||||
else
|
||||
board = (BOARD*) parent;
|
||||
|
||||
wxASSERT( board );
|
||||
#endif
|
||||
|
||||
if( m_Parent && m_Parent->Type() == PCB_DIMENSION_T )
|
||||
aList.push_back( MSG_PANEL_ITEM( _( "Dimension" ), m_Text, DARKGREEN ) );
|
||||
|
|
Loading…
Reference in New Issue