From cbf433fe04b07aedf2280001f9e5292c748cda62 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 23 Jan 2018 14:03:57 +0100 Subject: [PATCH] Symbol Library Editor: save anchor position when modified OnModify() stores the edited symbol in its edit buffer, therefore it has to be called after a modification. Fixes: lp:1744540 * https://bugs.launchpad.net/kicad/+bug/1744540 --- eeschema/symbedit.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/eeschema/symbedit.cpp b/eeschema/symbedit.cpp index a1bea8b947..0c6b834f01 100644 --- a/eeschema/symbedit.cpp +++ b/eeschema/symbedit.cpp @@ -219,18 +219,16 @@ void LIB_EDIT_FRAME::SaveOneSymbol() void LIB_EDIT_FRAME::PlaceAnchor() { - if( LIB_PART* part = GetCurPart() ) + if( LIB_PART* part = GetCurPart() ) { const wxPoint& cross_hair = GetCrossHairPosition(); wxPoint offset( -cross_hair.x, cross_hair.y ); - - OnModify( ); - part->SetOffset( offset ); + OnModify(); // Redraw the symbol - RedrawScreen( wxPoint( 0 , 0 ), true ); + RedrawScreen( wxPoint( 0, 0 ), true ); m_canvas->Refresh(); } }