diff options
Diffstat (limited to 'UVtools.Core/Gerber/Apertures/RectangleAperture.cs')
-rw-r--r-- | UVtools.Core/Gerber/Apertures/RectangleAperture.cs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/UVtools.Core/Gerber/Apertures/RectangleAperture.cs b/UVtools.Core/Gerber/Apertures/RectangleAperture.cs index 5dbd5a2..3be7bc4 100644 --- a/UVtools.Core/Gerber/Apertures/RectangleAperture.cs +++ b/UVtools.Core/Gerber/Apertures/RectangleAperture.cs @@ -21,16 +21,14 @@ public class RectangleAperture : Aperture #endregion #region Constructor - public RectangleAperture() : base("Rectangle") { } + public RectangleAperture(GerberDocument document) : base(document, "Rectangle") { } - public RectangleAperture(int index, float width, float height) : base(index, "Rectangle") - { - Size = new SizeF(width, height); - } + public RectangleAperture(GerberDocument document, int index, float width, float height) : this(document, index, new SizeF(width, height)) + { } - public RectangleAperture(int index, SizeF size) : base(index, "Rectangle") + public RectangleAperture(GerberDocument document, int index, SizeF size) : base(document, index, "Rectangle") { - Size = size; + Size = document.GetMillimeters(size); } #endregion |