mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Re-entrancy guard for zones and vias (potentially KICAD-AFQ).
This commit is contained in:
parent
68109fc0a9
commit
6474913fe8
@ -3151,6 +3151,11 @@ int DRAWING_TOOL::DrawZone( const TOOL_EVENT& aEvent )
|
||||
if( m_isFootprintEditor && !m_frame->GetModel() )
|
||||
return 0;
|
||||
|
||||
if( m_inDrawingTool )
|
||||
return 0;
|
||||
|
||||
REENTRANCY_GUARD guard( &m_inDrawingTool );
|
||||
|
||||
ZONE_MODE zoneMode = aEvent.Parameter<ZONE_MODE>();
|
||||
MODE drawMode = MODE::ZONE;
|
||||
|
||||
@ -3387,6 +3392,11 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
|
||||
if( m_isFootprintEditor )
|
||||
return 0;
|
||||
|
||||
if( m_inDrawingTool )
|
||||
return 0;
|
||||
|
||||
REENTRANCY_GUARD guard( &m_inDrawingTool );
|
||||
|
||||
struct VIA_PLACER : public INTERACTIVE_PLACER_BASE
|
||||
{
|
||||
PCB_BASE_EDIT_FRAME* m_frame;
|
||||
|
Loading…
x
Reference in New Issue
Block a user