Code hygiene.

This commit is contained in:
Jeff Young 2019-06-15 20:31:20 +01:00
parent 19aba615c2
commit 18ebced8f4
2 changed files with 5 additions and 1 deletions

View File

@ -529,7 +529,7 @@ void TOOL_MANAGER::dispatchInternal( const TOOL_EVENT& aEvent )
} }
// the tool state handler is waiting for events (i.e. called Wait() method) // the tool state handler is waiting for events (i.e. called Wait() method)
if( st->pendingWait ) if( st && st->pendingWait )
{ {
if( st->waitEvents.Matches( aEvent ) ) if( st->waitEvents.Matches( aEvent ) )
{ {

View File

@ -524,6 +524,8 @@ int SCH_DRAWING_TOOLS::SingleClickPlace( const TOOL_EVENT& aEvent )
case SCH_BUS_BUS_ENTRY_T: case SCH_BUS_BUS_ENTRY_T:
item = new SCH_BUS_BUS_ENTRY( cursorPos, g_lastBusEntryShape ); item = new SCH_BUS_BUS_ENTRY( cursorPos, g_lastBusEntryShape );
break; break;
default:
break;
} }
} }
@ -665,6 +667,8 @@ int SCH_DRAWING_TOOLS::TwoClickPlace( const TOOL_EVENT& aEvent )
item = m_frame->CreateSheetPin( sheet, label ); item = m_frame->CreateSheetPin( sheet, label );
break; break;
} }
default:
break;
} }
// Restore cursor after dialog // Restore cursor after dialog