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* SCH_EDIT_FRAME::AddJunction( const wxPoint& aPosition, bool aAppend )
|
||||||
{
|
{
|
||||||
SCH_JUNCTION* junction = new SCH_JUNCTION( aPosition );
|
SCH_JUNCTION* junction = new SCH_JUNCTION( aPosition );
|
||||||
SCH_SCREEN* screen = GetScreen();
|
|
||||||
bool broken_segments = false;
|
bool broken_segments = false;
|
||||||
|
|
||||||
AddToScreen( junction );
|
AddToScreen( junction );
|
||||||
|
|
|
@ -953,10 +953,10 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintAs( MODULE* aModule )
|
||||||
wxString msg = wxString::Format( _( "Footprint %s already exists in %s." ),
|
wxString msg = wxString::Format( _( "Footprint %s already exists in %s." ),
|
||||||
footprintName,
|
footprintName,
|
||||||
libraryName );
|
libraryName );
|
||||||
KIDIALOG dlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
|
KIDIALOG chkdlg( this, msg, _( "Confirmation" ), wxOK | wxCANCEL | wxICON_WARNING );
|
||||||
dlg.SetOKLabel( _( "Overwrite" ) );
|
chkdlg.SetOKLabel( _( "Overwrite" ) );
|
||||||
|
|
||||||
if( dlg.ShowModal() == wxID_CANCEL )
|
if( chkdlg.ShowModal() == wxID_CANCEL )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue