Eeschema: show connection indicator when placing no connect objects.

This commit is contained in:
Chris Pavlina 2015-06-24 11:39:44 -04:00 committed by Wayne Stambaugh
parent a928bbfaac
commit 9466f19427
1 changed files with 2 additions and 6 deletions

View File

@ -430,14 +430,10 @@ SCH_NO_CONNECT* SCH_EDIT_FRAME::AddNoConnect( wxDC* aDC, const wxPoint& aPositio
SCH_NO_CONNECT* no_connect = new SCH_NO_CONNECT( aPosition );
SetRepeatItem( no_connect );
m_canvas->CrossHairOff( aDC ); // Erase schematic cursor
no_connect->Draw( m_canvas, aDC, wxPoint( 0, 0 ), GR_DEFAULT_DRAWMODE );
m_canvas->CrossHairOn( aDC ); // Display schematic cursor
GetScreen()->Append( no_connect );
GetScreen()->SchematicCleanUp( m_canvas, aDC );
OnModify();
m_canvas->Refresh();
SaveCopyInUndoList( no_connect, UR_NEW );
return no_connect;
}