From 45ba06764254e8b865233c798f71d2179262e5f1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 25 May 2021 15:09:25 +0100 Subject: [PATCH] Update SCH_SCREENs RTree after placing new symbol. Fixes https://gitlab.com/kicad/code/kicad/issues/8451 --- eeschema/sch_screen.h | 2 -- eeschema/tools/sch_drawing_tools.cpp | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/eeschema/sch_screen.h b/eeschema/sch_screen.h index 47e2b0caac..2ddd51dff7 100644 --- a/eeschema/sch_screen.h +++ b/eeschema/sch_screen.h @@ -198,8 +198,6 @@ public: SCH_ITEM* GetItem( const wxPoint& aPosition, int aAccuracy = 0, KICAD_T aType = SCH_LOCATE_ANY_T ) const; - void Place( SCH_EDIT_FRAME* frame, wxDC* DC ) { }; - /** * Initialize the #LIB_PART reference for each #SCH_COMPONENT found in this schematic * from the project #SYMBOL_LIB_TABLE. diff --git a/eeschema/tools/sch_drawing_tools.cpp b/eeschema/tools/sch_drawing_tools.cpp index 3fec4651ff..05e6baecf0 100644 --- a/eeschema/tools/sch_drawing_tools.cpp +++ b/eeschema/tools/sch_drawing_tools.cpp @@ -281,6 +281,7 @@ int SCH_DRAWING_TOOLS::PlaceSymbol( const TOOL_EVENT& aEvent ) &m_selectionTool->GetSelection() ); m_view->Update( symbol ); + m_frame->GetScreen()->Update( symbol ); m_frame->OnModify(); SCH_COMPONENT* nextSymbol = nullptr;