Pcbnew: isDrag detection in Table creation tool

Drag breaks the UI when in the create table action

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19767
This commit is contained in:
Damjan 2025-01-29 01:25:37 +00:00 committed by Seth Hillbrand
parent 088e0e80a1
commit c6e049df2a

View File

@ -1168,7 +1168,8 @@ int DRAWING_TOOL::DrawTable( const TOOL_EVENT& aEvent )
COORDS_PADDING );
m_controls->ForceCursorPosition( true, cursorPos );
if( evt->IsCancelInteractive() || ( table && evt->IsAction( &ACTIONS::undo ) ) )
if( evt->IsCancelInteractive() || ( table && evt->IsAction( &ACTIONS::undo ) )
|| evt->IsDrag() )
{
if( table )
{