From e07643f0701f79b2f9fc51bc5067e07f913dbd82 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Fri, 25 Feb 2011 10:17:07 -0500 Subject: [PATCH] Fixed bug that prevented moved items from being place in library editor. --- eeschema/libedit_onleftclick.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eeschema/libedit_onleftclick.cpp b/eeschema/libedit_onleftclick.cpp index ef0b6a33d5..8d4ec1e6b3 100644 --- a/eeschema/libedit_onleftclick.cpp +++ b/eeschema/libedit_onleftclick.cpp @@ -38,6 +38,19 @@ void LIB_EDIT_FRAME::OnLeftClick( wxDC* DC, const wxPoint& aPosition ) switch( GetToolId() ) { 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; case ID_LIBEDIT_PIN_BUTT: