From 7eed86de38b39d5e1bb994d24fa530ea089e8d10 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 8 Aug 2013 11:11:50 -0500 Subject: [PATCH] ENHANCE: specctra export Edge.Cuts "endpoint mismatch error message" was not showing exact coordinates with sufficient resolution --- pcbnew/specctra_export.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pcbnew/specctra_export.cpp b/pcbnew/specctra_export.cpp index f974af99f0..f25b97ac18 100644 --- a/pcbnew/specctra_export.cpp +++ b/pcbnew/specctra_export.cpp @@ -1107,10 +1107,11 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER if( !graphic ) { 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." ), - prevPt.x, - prevPt.y ); + GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ), + GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) ) + ); ThrowIOError( error ); } } @@ -1223,10 +1224,10 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER if( !graphic ) { 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." ), - prevPt.x, - prevPt.y + GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.x ).c_str() ) ), + GetChars( FROM_UTF8( BOARD_ITEM::FormatInternalUnits( prevPt.y ).c_str() ) ) ); ThrowIOError( error ); @@ -1239,9 +1240,9 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER { // User has not defined a board perimeter yet... - EDA_RECT bbbox = aBoard->ComputeBoundingBox(); - + EDA_RECT bbbox = aBoard->ComputeBoundingBox(); RECTANGLE* rect = new RECTANGLE( boundary ); + boundary->rectangle = rect; rect->layer_id = "pcb";