Corrects test for return case in tool event

This commit is contained in:
Seth Hillbrand 2019-07-01 20:30:47 -07:00
parent d65ad38e3f
commit 69b31eb88d
1 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ bool TOOL_EVENT::IsSelectionEvent()
bool TOOL_EVENT::IsPointEditor()
{
if( GetCommandStr() && GetCommandStr().get().find( "PointEditor" ) != wxNOT_FOUND )
if( GetCommandStr() && GetCommandStr().get().find( "PointEditor" ) != GetCommandStr()->npos )
return true;
if( GetCommandId() && GetCommandId() == ACTIONS::activatePointEditor.GetId() )
@ -217,7 +217,7 @@ bool TOOL_EVENT::IsPointEditor()
bool TOOL_EVENT::IsMoveTool()
{
if( GetCommandStr() && GetCommandStr().get().find( "InteractiveMove" ) != wxNOT_FOUND )
if( GetCommandStr() && GetCommandStr().get().find( "InteractiveMove" ) != GetCommandStr()->npos )
return true;
return false;