Commit 8ef7cf77 authored by dickelbeck's avatar dickelbeck

more layer listbox issues

parent 9e46a779
...@@ -81,6 +81,7 @@ void WinEDA_PcbFrame::Files_io( wxCommandEvent& event ) ...@@ -81,6 +81,7 @@ void WinEDA_PcbFrame::Files_io( wxCommandEvent& event )
GetScreen()->m_FileName.Printf( wxT( "%s%cnoname%s" ), GetScreen()->m_FileName.Printf( wxT( "%s%cnoname%s" ),
wxGetCwd().GetData(), DIR_SEP, PcbExtBuffer.GetData() ); wxGetCwd().GetData(), DIR_SEP, PcbExtBuffer.GetData() );
SetTitle( GetScreen()->m_FileName ); SetTitle( GetScreen()->m_FileName );
ReCreateLayerBox( NULL );
break; break;
case ID_LOAD_FILE_1: case ID_LOAD_FILE_1:
......
...@@ -90,6 +90,9 @@ bool WinEDA_App::OnInit() ...@@ -90,6 +90,9 @@ bool WinEDA_App::OnInit()
if( !FFileName.IsEmpty() ) if( !FFileName.IsEmpty() )
{ {
m_PcbFrame->LoadOnePcbFile( FFileName, FALSE ); m_PcbFrame->LoadOnePcbFile( FFileName, FALSE );
// update the layer names in the listbox
m_PcbFrame->ReCreateLayerBox( NULL );
} }
return TRUE; return TRUE;
......
...@@ -629,6 +629,9 @@ void WinEDA_PcbFrame::ReCreateAuxiliaryToolbar() ...@@ -629,6 +629,9 @@ void WinEDA_PcbFrame::ReCreateAuxiliaryToolbar()
m_SelViaSizeBox_Changed = TRUE; m_SelViaSizeBox_Changed = TRUE;
m_SelTrackWidthBox_Changed = TRUE; m_SelTrackWidthBox_Changed = TRUE;
ReCreateLayerBox( NULL );
SetToolbars(); SetToolbars();
} }
......
...@@ -74,3 +74,14 @@ edges editable. (DONE) ...@@ -74,3 +74,14 @@ edges editable. (DONE)
2) final solution: get rid of requirement for tracks buried within a zone. 2) final solution: get rid of requirement for tracks buried within a zone.
Review the GEDA source code and other sources to gather ideas before doing 2). Review the GEDA source code and other sources to gather ideas before doing 2).
2008-Apr-29 Assigned To:
asked by: Dick Hollenbeck
================================================================================
+pcbnew
When picking new board from the menu, when an existing board is already
in memory, the number of layers in the new board is not set to the default
but rather to the number of layers in the previously loaded board, and with
the default layer names, rather than the layer names of the previously
loaded board. I think the number of layers should be reduced to the
default and the default layer names should be used.
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