|
|
@ -231,6 +231,7 @@ bool GERBVIEW_FRAME::loadListOfGerberFiles( const wxString& aPath, |
|
|
|
// Read gerber files: each file is loaded on a new GerbView layer
|
|
|
|
bool success = true; |
|
|
|
int layer = GetActiveLayer(); |
|
|
|
int visibility = GetVisibleLayers(); |
|
|
|
|
|
|
|
// Manage errors when loading files
|
|
|
|
wxString msg; |
|
|
@ -265,6 +266,8 @@ bool GERBVIEW_FRAME::loadListOfGerberFiles( const wxString& aPath, |
|
|
|
|
|
|
|
SetActiveLayer( layer, false ); |
|
|
|
|
|
|
|
visibility |= ( 1 << layer ); |
|
|
|
|
|
|
|
if( Read_GERBER_File( filename.GetFullPath() ) ) |
|
|
|
{ |
|
|
|
UpdateFileHistory( m_lastFileName ); |
|
|
@ -305,6 +308,8 @@ bool GERBVIEW_FRAME::loadListOfGerberFiles( const wxString& aPath, |
|
|
|
mbox.ShowModal(); |
|
|
|
} |
|
|
|
|
|
|
|
SetVisibleLayers( visibility ); |
|
|
|
|
|
|
|
Zoom_Automatique( false ); |
|
|
|
|
|
|
|
// Synchronize layers tools with actual active layer:
|
|
|
|