Fix minor compile warnings
This commit is contained in:
parent
2d8f1df293
commit
a3bbd32953
|
@ -797,7 +797,6 @@ void SCH_EDIT_FRAME::DeleteJunction( SCH_ITEM* aJunction, bool aAppend )
|
|||
SCH_JUNCTION* SCH_EDIT_FRAME::AddJunction( const wxPoint& aPosition, bool aAppend )
|
||||
{
|
||||
SCH_JUNCTION* junction = new SCH_JUNCTION( aPosition );
|
||||
SCH_SCREEN* screen = GetScreen();
|
||||
bool broken_segments = false;
|
||||
|
||||
AddToScreen( junction );
|
||||
|
|
|
@ -953,10 +953,10 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintAs( MODULE* aModule )
|
|||
wxString msg = wxString::Format( _( "Footprint %s already exists in %s." ),
|
||||
footprintName,
|
||||
libraryName );
|
||||
KIDIALOG dlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
|
||||
dlg.SetOKLabel( _( "Overwrite" ) );
|
||||
KIDIALOG chkdlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
|
||||
chkdlg.SetOKLabel( _( "Overwrite" ) );
|
||||
|
||||
if( dlg.ShowModal() == wxID_CANCEL )
|
||||
if( chkdlg.ShowModal() == wxID_CANCEL )
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue