From 358cccfd730b217b0483843ab0c2c2bfcb8e788c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 7 Jul 2020 14:45:14 +0100 Subject: [PATCH] A bit of safety if realtime connection updating isn't on. --- eeschema/tools/sch_editor_control.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/eeschema/tools/sch_editor_control.cpp b/eeschema/tools/sch_editor_control.cpp index 67302ac691..40d7780dbc 100644 --- a/eeschema/tools/sch_editor_control.cpp +++ b/eeschema/tools/sch_editor_control.cpp @@ -907,6 +907,11 @@ int SCH_EDITOR_CONTROL::AssignNetclass( const TOOL_EVENT& aEvent ) KIGFX::VIEW_CONTROLS* controls = getViewControls(); VECTOR2D cursorPos = controls->GetCursorPosition( !aEvent.Modifier( MD_ALT ) ); + // TODO remove once real-time connectivity is a given + if( !ADVANCED_CFG::GetCfg().m_realTimeConnectivity || !CONNECTION_GRAPH::m_allowRealTime ) + // Ensure the netlist data is up to date: + m_frame->RecalculateConnections( NO_CLEANUP ); + // Remove selection in favour of highlighting so the whole net is highlighted selectionTool->ClearSelection(); highlightNet( m_toolMgr, cursorPos );