Commit 0f09b337 authored by Wayne Stambaugh's avatar Wayne Stambaugh

Fix developer warning message to only show on debug build. Fixes lp:624926

parent b0ea88e2
...@@ -58,23 +58,13 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition ) ...@@ -58,23 +58,13 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
DrawPanel->Refresh( true ); DrawPanel->Refresh( true );
return; return;
case SCH_SCREEN_T:
DisplayError( this, wxT( "OnLeftClick err: unexpected type for Place" ) );
item->m_Flags = 0;
break;
case SCH_LINE_T: // May already be drawing segment. case SCH_LINE_T: // May already be drawing segment.
break; break;
default: default:
{ wxFAIL_MSG( wxT( "SCH_EDIT_FRAME::OnLeftClick error. Item type <" ) +
wxString msg; item->GetClass() + wxT( "> is already being edited." ) );
msg.Printf( wxT( "SCH_EDIT_FRAME::OnLeftClick err: m_Flags != 0, itmetype %d" ), item->SetFlags( 0 );
item->Type());
DisplayError( this, msg );
item->m_Flags = 0;
break;
}
} }
} }
else else
...@@ -306,14 +296,9 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition ) ...@@ -306,14 +296,9 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
break; break;
default: default:
{ SetToolID( ID_SCH_NO_TOOL, DrawPanel->GetDefaultCursor(), wxEmptyString );
SetToolID( 0, wxCURSOR_ARROW, wxEmptyString ); wxFAIL_MSG( wxT( "SCH_EDIT_FRAME::OnLeftClick invalid tool ID <" ) +
wxString msg( wxT( "SCH_EDIT_FRAME::OnLeftClick error state " ) ); wxString::Format( wxT( "%d> selected." ), m_ID_current_state ) );
msg << m_ID_current_state;
DisplayError( this, msg );
break;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment