Loading pcbnew/tool_pcb.cpp +34 −23 Original line number Original line Diff line number Diff line Loading @@ -618,8 +618,19 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent ) { { if( parent == NULL ) if( parent == NULL ) return NULL; return NULL; m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER, m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER, wxPoint( -1, -1 ), wxSize( -1, -1 ) ); wxPoint( -1, -1 ), #if defined(__UNIX__) // Width enough for the longest string: "Component (Page Down)" // Maybe that string is too long? wxSize( 230, -1 ) #else wxSize( LISTBOX_WIDTH+40, -1 ) #endif ); parent->AddControl( m_SelLayerBox ); parent->AddControl( m_SelLayerBox ); } } Loading Loading
pcbnew/tool_pcb.cpp +34 −23 Original line number Original line Diff line number Diff line Loading @@ -618,8 +618,19 @@ WinEDAChoiceBox* WinEDA_PcbFrame::ReCreateLayerBox( WinEDA_Toolbar* parent ) { { if( parent == NULL ) if( parent == NULL ) return NULL; return NULL; m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER, m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER, wxPoint( -1, -1 ), wxSize( -1, -1 ) ); wxPoint( -1, -1 ), #if defined(__UNIX__) // Width enough for the longest string: "Component (Page Down)" // Maybe that string is too long? wxSize( 230, -1 ) #else wxSize( LISTBOX_WIDTH+40, -1 ) #endif ); parent->AddControl( m_SelLayerBox ); parent->AddControl( m_SelLayerBox ); } } Loading