Don't try updating msgpanel while segments.

This commit is contained in:
Marek Roszko 2020-08-15 14:26:14 -04:00 committed by Wayne Stambaugh
parent a417da4ce0
commit 73b2a10cab
1 changed files with 1 additions and 6 deletions

View File

@ -1137,7 +1137,7 @@ bool DRAWING_TOOL::drawSegment( const std::string& aTool, int aShape, DRAWSEGMEN
m_frame->GetScreen()->m_LocalOrigin = cursorPos; m_frame->GetScreen()->m_LocalOrigin = cursorPos;
preview.Add( graphic ); preview.Add( graphic );
frame()->SetMsgPanel( graphic ); frame()->SetMsgPanel( board() );
m_controls->SetAutoPan( true ); m_controls->SetAutoPan( true );
m_controls->CaptureCursor( true ); m_controls->CaptureCursor( true );
@ -1200,11 +1200,6 @@ bool DRAWING_TOOL::drawSegment( const std::string& aTool, int aShape, DRAWSEGMEN
updateSegmentFromConstructionMgr( twoPointManager, graphic ); updateSegmentFromConstructionMgr( twoPointManager, graphic );
m_view->Update( &preview ); m_view->Update( &preview );
m_view->Update( &twoPointAsst ); m_view->Update( &twoPointAsst );
if( started )
frame()->SetMsgPanel( graphic );
else
frame()->SetMsgPanel( board() );
} }
else if( evt->IsAction( &PCB_ACTIONS::incWidth ) ) else if( evt->IsAction( &PCB_ACTIONS::incWidth ) )
{ {