diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index c048e8b4aa..35b9afd37e 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -1054,6 +1054,9 @@ int POINT_EDITOR::addCorner( const TOOL_EVENT& aEvent ) // Move the end of the line to the break point.. graphicItem->SetEnd( wxPoint( nearestPoint.x, nearestPoint.y ) ); + if( graphicItem->Type() == PCB_MODULE_EDGE_T ) + static_cast( graphicItem )->SetLocalCoord(); + // and add another one starting from the break point DRAWSEGMENT* newSegment; @@ -1072,6 +1075,9 @@ int POINT_EDITOR::addCorner( const TOOL_EVENT& aEvent ) newSegment->SetStart( wxPoint( nearestPoint.x, nearestPoint.y ) ); newSegment->SetEnd( wxPoint( seg.B.x, seg.B.y ) ); + if( newSegment->Type() == PCB_MODULE_EDGE_T ) + static_cast( newSegment )->SetLocalCoord(); + commit.Add( newSegment ); commit.Push( _( "Split segment" ) ); }