mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix a bit of fall-out from making command strings non-optional.
This commit is contained in:
parent
4b20eb9cb0
commit
7fe3999457
@ -1153,8 +1153,9 @@ bool TOOL_MANAGER::processEvent( const TOOL_EVENT& aEvent )
|
||||
if( GetToolHolder() && !GetToolHolder()->GetDoImmediateActions() )
|
||||
{
|
||||
// An tool-selection-event has no position
|
||||
if( mod_event.getCommandStr() != GetToolHolder()->CurrentToolName()
|
||||
&& !mod_event.ForceImmediate() )
|
||||
if( !mod_event.getCommandStr().empty()
|
||||
&& mod_event.getCommandStr() != GetToolHolder()->CurrentToolName()
|
||||
&& !mod_event.ForceImmediate() )
|
||||
{
|
||||
mod_event.SetHasPosition( false );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user