factored out ShowCoord() to use common operator << (wxString, wxPoint)

This commit is contained in:
dickelbeck 2008-05-05 19:54:21 +00:00
parent aea07119e2
commit 23785a1166
1 changed files with 7 additions and 11 deletions

View File

@ -71,7 +71,7 @@ wxString DRC_ITEM::GetErrorText() const
return wxString( _("Copper area inside copper area"));
case COPPERAREA_CLOSE_TO_COPPERAREA:
return wxString( _("Copper areas intersect or are too close"));
case DRCE_NON_EXISTANT_NET_FOR_ZONE_OUTLINE:
case DRCE_NON_EXISTANT_NET_FOR_ZONE_OUTLINE:
return wxString( _("Copper area has a non existent net name"));
@ -83,13 +83,9 @@ wxString DRC_ITEM::GetErrorText() const
wxString DRC_ITEM::ShowCoord( const wxPoint& aPos )
{
wxString temp;
wxString ret;
ret << wxT("@ (") << valeur_param( aPos.x, temp );
ret << wxT(",") << valeur_param( aPos.y, temp );
ret << wxT(")");
ret << aPos;
return ret;
}