clear flags after a block placement (that previously leave moved item shown

in the selected state color)
This commit is contained in:
jean-pierre charras 2020-11-08 10:57:13 +01:00
parent 6223e7475c
commit 4497a754fb
1 changed files with 2 additions and 1 deletions

View File

@ -147,6 +147,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
item->Move( block->GetMoveVector() );
item->SetFlags( IS_MOVED );
GetCanvas()->GetView()->Update( item, KIGFX::GEOMETRY );
item->ClearFlags();
}
break;
@ -176,7 +177,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
TestDanglingEnds();
OnModify();
// clear dome flags and pointers
// clear some flags and pointers
GetScreen()->ClearDrawingState();
GetScreen()->ClearBlockCommand();
GetScreen()->SetCurItem( NULL );