Commit a20c8928 authored by Dick Hollenbeck's avatar Dick Hollenbeck

hide pageFmts[] since it is no longer NULL terminated and not global

parent 1f3b3d68
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
// the translated and the not translated version. // the translated and the not translated version.
// when displayed in dialog we should explicitely call wxGetTranslation() // when displayed in dialog we should explicitely call wxGetTranslation()
// to show the translated version. // to show the translated version.
const wxString pageFmts[] = static const wxString pageFmts[] =
{ {
_("A4 210x297mm"), _("A4 210x297mm"),
_("A3 297x420mm"), _("A3 297x420mm"),
......
...@@ -111,17 +111,18 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC, ...@@ -111,17 +111,18 @@ void TEXTE_PCB::Draw( EDA_DRAW_PANEL* panel, wxDC* DC,
void TEXTE_PCB::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList ) void TEXTE_PCB::GetMsgPanelInfo( std::vector< MSG_PANEL_ITEM >& aList )
{ {
wxString msg; wxString msg;
BOARD* board;
BOARD_ITEM* parent = (BOARD_ITEM*) m_Parent;
#if defined(DEBUG)
BOARD_ITEM* parent = (BOARD_ITEM*) m_Parent;
wxASSERT( parent ); wxASSERT( parent );
BOARD* board;
if( parent->Type() == PCB_DIMENSION_T ) if( parent->Type() == PCB_DIMENSION_T )
board = (BOARD*) parent->GetParent(); board = (BOARD*) parent->GetParent();
else else
board = (BOARD*) parent; board = (BOARD*) parent;
wxASSERT( board ); wxASSERT( board );
#endif
if( m_Parent && m_Parent->Type() == PCB_DIMENSION_T ) if( m_Parent && m_Parent->Type() == PCB_DIMENSION_T )
aList.push_back( MSG_PANEL_ITEM( _( "Dimension" ), m_Text, DARKGREEN ) ); aList.push_back( MSG_PANEL_ITEM( _( "Dimension" ), m_Text, DARKGREEN ) );
......
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