Fix issue with dragging flipped MODULE.

This commit is contained in:
Jeff Young 2020-08-02 12:01:17 +01:00
parent 2320a67c30
commit ef2388b5bb
1 changed files with 6 additions and 1 deletions

View File

@ -1447,7 +1447,12 @@ int ROUTER_TOOL::InlineDrag( const TOOL_EVENT& aEvent )
for( BOARD_ITEM* drawing : module->GraphicalItems() )
{
previewItem = static_cast<BOARD_ITEM*>( drawing->Clone() );
previewItem->Move( offset );
if( drawing->Type() == PCB_MODULE_EDGE_T && module->IsFlipped() )
previewItem->Move( -offset );
else
previewItem->Move( offset );
view()->Add( previewItem );
view()->AddToPreview( previewItem );
view()->Hide( drawing, true );