Fixed bug that prevented moved items from being place in library editor.

This commit is contained in:
Wayne Stambaugh 2011-02-25 10:17:07 -05:00
parent 4d1cdfd4ff
commit e07643f070
1 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,19 @@ void LIB_EDIT_FRAME::OnLeftClick( wxDC* DC, const wxPoint& aPosition )
switch( GetToolId() ) switch( GetToolId() )
{ {
case ID_NO_TOOL_SELECTED: case ID_NO_TOOL_SELECTED:
if( DrawEntry && DrawEntry->m_Flags ) // moved object
{
switch( DrawEntry->Type() )
{
case LIB_PIN_T:
PlacePin( DC );
break;
default:
EndDrawGraphicItem( DC );
break;
}
}
break; break;
case ID_LIBEDIT_PIN_BUTT: case ID_LIBEDIT_PIN_BUTT: