clear flags after a block placement (that previously leave moved item shown
in the selected state color)
This commit is contained in:
parent
6223e7475c
commit
4497a754fb
|
@ -147,6 +147,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
|
||||||
item->Move( block->GetMoveVector() );
|
item->Move( block->GetMoveVector() );
|
||||||
item->SetFlags( IS_MOVED );
|
item->SetFlags( IS_MOVED );
|
||||||
GetCanvas()->GetView()->Update( item, KIGFX::GEOMETRY );
|
GetCanvas()->GetView()->Update( item, KIGFX::GEOMETRY );
|
||||||
|
item->ClearFlags();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -176,7 +177,7 @@ void SCH_EDIT_FRAME::HandleBlockPlace( wxDC* DC )
|
||||||
TestDanglingEnds();
|
TestDanglingEnds();
|
||||||
OnModify();
|
OnModify();
|
||||||
|
|
||||||
// clear dome flags and pointers
|
// clear some flags and pointers
|
||||||
GetScreen()->ClearDrawingState();
|
GetScreen()->ClearDrawingState();
|
||||||
GetScreen()->ClearBlockCommand();
|
GetScreen()->ClearBlockCommand();
|
||||||
GetScreen()->SetCurItem( NULL );
|
GetScreen()->SetCurItem( NULL );
|
||||||
|
|
Loading…
Reference in New Issue