When copying modified footprint make sure we get the latest.
Fixes: lp:1805413 * https://bugs.launchpad.net/kicad/+bug/1805413
This commit is contained in:
parent
7b2f245283
commit
8ca0fe6722
|
@ -503,10 +503,19 @@ void FOOTPRINT_EDIT_FRAME::Process_Special_Functions( wxCommandEvent& event )
|
||||||
if( getTargetFPID().IsValid() )
|
if( getTargetFPID().IsValid() )
|
||||||
{
|
{
|
||||||
LIB_ID fpID = getTargetFPID();
|
LIB_ID fpID = getTargetFPID();
|
||||||
m_copiedModule.reset( LoadFootprint( fpID ) );
|
|
||||||
|
if( fpID == GetLoadedFPID() )
|
||||||
|
m_copiedModule.reset( new MODULE( *GetBoard()->m_Modules.GetFirst() ) );
|
||||||
|
else
|
||||||
|
m_copiedModule.reset( LoadFootprint( fpID ) );
|
||||||
|
|
||||||
if( id == ID_MODEDIT_CUT_PART )
|
if( id == ID_MODEDIT_CUT_PART )
|
||||||
|
{
|
||||||
|
if( fpID == GetLoadedFPID() )
|
||||||
|
Clear_Pcb( false );
|
||||||
|
|
||||||
DeleteModuleFromLibrary( fpID, false );
|
DeleteModuleFromLibrary( fpID, false );
|
||||||
|
}
|
||||||
|
|
||||||
SyncLibraryTree( true );
|
SyncLibraryTree( true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue