Commit 92baa531 authored by Dick Hollenbeck's avatar Dick Hollenbeck

ENHANCE: specctra export Edge.Cuts "endpoint mismatch error message" was not...

ENHANCE: specctra export Edge.Cuts "endpoint mismatch error message" was not showing exact coordinates with sufficient resolution
parent e5a94ff9
...@@ -1107,10 +1107,11 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER ...@@ -1107,10 +1107,11 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER
if( !graphic ) if( !graphic )
{ {
wxString error = wxString::Format( wxString error = wxString::Format(
_( "Unable to find the next segment with an endpoint of (%d,%d).\n" _( "Unable to find the next segment with an endpoint of (%s mm, %s mm).\n"
"Edit Edge.Cuts perimeter graphics, making them contiguous polygons each." ), "Edit Edge.Cuts perimeter graphics, making them contiguous polygons each." ),
prevPt.x, GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ),
prevPt.y ); GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) )
);
ThrowIOError( error ); ThrowIOError( error );
} }
} }
...@@ -1223,10 +1224,10 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER ...@@ -1223,10 +1224,10 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER
if( !graphic ) if( !graphic )
{ {
wxString error = wxString::Format( wxString error = wxString::Format(
_( "Unable to find the next segment with an endpoint of (%d,%d).\n" _( "Unable to find the next segment with an endpoint of (%s mm, %s mm).\n"
"Edit Edge.Cuts interior graphics, making them contiguous polygons each." ), "Edit Edge.Cuts interior graphics, making them contiguous polygons each." ),
prevPt.x, GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ),
prevPt.y GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) )
); );
ThrowIOError( error ); ThrowIOError( error );
...@@ -1239,9 +1240,9 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER ...@@ -1239,9 +1240,9 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER
{ {
// User has not defined a board perimeter yet... // User has not defined a board perimeter yet...
EDA_RECT bbbox = aBoard->ComputeBoundingBox(); EDA_RECT bbbox = aBoard->ComputeBoundingBox();
RECTANGLE* rect = new RECTANGLE( boundary ); RECTANGLE* rect = new RECTANGLE( boundary );
boundary->rectangle = rect; boundary->rectangle = rect;
rect->layer_id = "pcb"; rect->layer_id = "pcb";
......
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