From f4f0c09fe490d54e065d1b16424f8af61be8790e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 18 Dec 2017 16:05:18 -0800 Subject: [PATCH] Eeschema: Clear drawing state when loading project Prevents stray flags from entering schematic editing process Fixes: lp:1738894 * https://bugs.launchpad.net/kicad/+bug/1738894 --- eeschema/files-io.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/files-io.cpp b/eeschema/files-io.cpp index 1f9e892837..31d8d0e1e6 100644 --- a/eeschema/files-io.cpp +++ b/eeschema/files-io.cpp @@ -377,6 +377,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector& aFileSet, in Zoom_Automatique( false ); SetSheetNumberAndCount(); m_canvas->Refresh( true ); + GetScreen()->ClearDrawingState(); return true; }