Improve broken edge outline error message

This commit is contained in:
Chris Pavlina 2016-12-29 12:22:48 -05:00
parent a76f40be3b
commit 6078ca85e5
2 changed files with 4 additions and 6 deletions

View File

@ -483,9 +483,7 @@ void CINFO3D_VISU::createBoardPolygon()
if( !m_board->GetBoardPolygonOutlines( m_board_poly, allLayerHoles, &errmsg ) ) if( !m_board->GetBoardPolygonOutlines( m_board_poly, allLayerHoles, &errmsg ) )
{ {
errmsg.append( wxT( "\n\n" ) ); errmsg.append( wxT( "\n\n" ) );
errmsg.append( _( "Unable to calculate the board outlines." ) ); errmsg.append( _( "Cannot determine the board outline." ) );
errmsg.append( wxT( "\n" ) );
errmsg.append( _( "Therefore use the board boundary box." ) );
wxLogMessage( errmsg ); wxLogMessage( errmsg );
} }

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2007-2015 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com> * Copyright (C) 2007-2015 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2015 KiCad Developers, see change_log.txt for contributors. * Copyright (C) 2015-2016 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -1157,8 +1157,8 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary )
else else
{ {
wxString error = wxString::Format( wxString error = wxString::Format(
_( "Unable to find the next boundary segment with an endpoint of (%s mm, %s mm).\n" _( "Unable to find the next boundary segment with an endpoint of (%s mm, %s mm). "
"Edit Edge.Cuts perimeter graphics, making them contiguous polygons each." ), "Edge.Cuts perimeter graphics must form a contiguous, closed polygon." ),
GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ), GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ),
GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) ) GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) )
); );