eeschema: fix disappearing graphics when block move is aborted after rotation/flipping

Fixes: lp:1809444
* https://bugs.launchpad.net/kicad/+bug/1809444
This commit is contained in:
Tomasz Włostowski 2019-01-28 14:45:57 +01:00
parent ef2af9145e
commit 6afb082a08
1 changed files with 4 additions and 0 deletions

View File

@ -351,6 +351,9 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
// We set the dangling ends to the block-scope, so we must set them back to
// schematic-scope.
TestDanglingEnds();
view->ShowSelectionArea( false );
view->ClearHiddenFlags();
}
if( !nextcmd )
@ -363,6 +366,7 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC )
}
view->ShowSelectionArea( false );
view->ClearPreview();
view->ShowPreview( nextcmd );
return nextcmd;