From 6afb082a08868721f0b85816e7bf20f4e8bb78fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Mon, 28 Jan 2019 14:45:57 +0100 Subject: [PATCH] eeschema: fix disappearing graphics when block move is aborted after rotation/flipping Fixes: lp:1809444 * https://bugs.launchpad.net/kicad/+bug/1809444 --- eeschema/block.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index e024f6142e..383cc24859 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -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;