diff --git a/pcbnew/librairi.cpp b/pcbnew/librairi.cpp index b793856792..502b8c2fce 100644 --- a/pcbnew/librairi.cpp +++ b/pcbnew/librairi.cpp @@ -272,6 +272,10 @@ MODULE* FOOTPRINT_EDIT_FRAME::Import_Module() // Display info : SetMsgPanel( module ); PlaceModule( module, NULL ); + + if( IsGalCanvasActive() ) + module->SetPosition( wxPoint( 0, 0 ) ); + GetBoard()->m_Status_Pcb = 0; GetBoard()->BuildListOfNets(); updateView(); diff --git a/pcbnew/loadcmp.cpp b/pcbnew/loadcmp.cpp index 6d6f6395b7..6ef9ba91ec 100644 --- a/pcbnew/loadcmp.cpp +++ b/pcbnew/loadcmp.cpp @@ -276,7 +276,12 @@ MODULE* PCB_BASE_FRAME::LoadModuleFromLibrary( const wxString& aLibrary, module->SetFlags( IS_NEW ); module->SetLink( 0 ); - module->SetPosition( curspos ); + + if( IsGalCanvasActive() ) + module->SetPosition( wxPoint( 0, 0 ) ); // cursor in GAL may not be initialized at the moment + else + module->SetPosition( curspos ); + module->SetTimeStamp( GetNewTimeStamp() ); GetBoard()->m_Status_Pcb = 0;