From 47e28cb5be64d7b160cf627d97a34596ce530675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Thu, 31 Jan 2019 02:49:44 +0100 Subject: [PATCH] eeschema: don't clear freshly selected block in HandleBlockEnd() at the first mouse event Fixes: lp:1813971 * https://bugs.launchpad.net/kicad/+bug/1813971 --- eeschema/block.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/block.cpp b/eeschema/block.cpp index 383cc24859..e016453e9c 100644 --- a/eeschema/block.cpp +++ b/eeschema/block.cpp @@ -366,7 +366,8 @@ bool SCH_EDIT_FRAME::HandleBlockEnd( wxDC* aDC ) } view->ShowSelectionArea( false ); - view->ClearPreview(); + if( !nextcmd ) + view->ClearPreview(); view->ShowPreview( nextcmd ); return nextcmd;