From 2b7626a2434f7be661811b4155edc39011c3ba80 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 12 Oct 2010 18:01:07 +0200 Subject: [PATCH] Fixed bug 658716 (Pads too large in gerber for rotated SMT module) --- common/common_plotGERBER_functions.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/common/common_plotGERBER_functions.cpp b/common/common_plotGERBER_functions.cpp index 8b58347dc1..40530fc427 100644 --- a/common/common_plotGERBER_functions.cpp +++ b/common/common_plotGERBER_functions.cpp @@ -458,14 +458,14 @@ void GERBER_PLOTTER::flash_pad_rect( wxPoint pos, wxSize size, // coord[3] is assumed the lower right /* Trace the outline. */ - coord[0].x = -size.x; // lower left - coord[0].y = size.y; - coord[1].x = -size.x; // upper left - coord[1].y = -size.y; - coord[2].x = size.x; // upper right - coord[2].y = -size.y; - coord[3].x = size.x; //lower right - coord[3].y = size.y; + coord[0].x = -size.x/2; // lower left + coord[0].y = size.y/2; + coord[1].x = -size.x/2; // upper left + coord[1].y = -size.y/2; + coord[2].x = size.x/2; // upper right + coord[2].y = -size.y/2; + coord[3].x = size.x/2; //lower right + coord[3].y = size.y/2; flash_pad_trapez( pos, coord, orient, trace_mode ); }