From 73b2a10cab876458603f1b8b1795573a17767711 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 15 Aug 2020 14:26:14 -0400 Subject: [PATCH] Don't try updating msgpanel while segments. --- pcbnew/tools/drawing_tool.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 28d22c7c7d..15e7677ef5 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1137,7 +1137,7 @@ bool DRAWING_TOOL::drawSegment( const std::string& aTool, int aShape, DRAWSEGMEN m_frame->GetScreen()->m_LocalOrigin = cursorPos; preview.Add( graphic ); - frame()->SetMsgPanel( graphic ); + frame()->SetMsgPanel( board() ); m_controls->SetAutoPan( true ); m_controls->CaptureCursor( true ); @@ -1200,11 +1200,6 @@ bool DRAWING_TOOL::drawSegment( const std::string& aTool, int aShape, DRAWSEGMEN updateSegmentFromConstructionMgr( twoPointManager, graphic ); m_view->Update( &preview ); m_view->Update( &twoPointAsst ); - - if( started ) - frame()->SetMsgPanel( graphic ); - else - frame()->SetMsgPanel( board() ); } else if( evt->IsAction( &PCB_ACTIONS::incWidth ) ) {