Plot pad outlines on Fab files: fix many issues.

Depending on plotter type and pad type, the plotted shapes were not always the outlines,
but a outline inside the pad shape (due to legacy reasons).
In many cases the plotted shape was in fact incorrect.
(only noticeable for very small pads)
Now the actual pad outlines are plotted without modification.
Fixes #11484
https://gitlab.com/kicad/code/kicad/issues/11484
This commit is contained in:
jean-pierre charras
2022-04-28 12:42:43 +02:00
parent 37aa42d1e3
commit 91dfa79a67
4 changed files with 9 additions and 49 deletions
+1 -1
View File
@@ -549,7 +549,7 @@ void PLOTTER::sketchOval( const VECTOR2I& aPos, const VECTOR2I& aSize, const EDA
}
int deltaxy = size.y - size.x; /* distance between centers of the oval */
int radius = ( size.x - m_currentPenWidth ) / 2;
int radius = size.x / 2;
pt.x = -radius;
pt.y = -deltaxy / 2;