mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected the wiring command (adjustment to recent change for
centering wires on grid lines when using a snap grid) so that the wire width is maintained when switching from one layer to another, when the wire width is larger than the minimum for the route layer.
This commit is contained in:
+1
-1
@@ -1411,7 +1411,7 @@ CmdWire(w, cmd)
|
||||
else
|
||||
{
|
||||
width = DRCGetDefaultLayerWidth(type);
|
||||
WireAddContact(type, width);
|
||||
WireAddContact(type, (WireWidth < width) ? width : WireWidth);
|
||||
}
|
||||
}
|
||||
else if (!strcmp(cmd->tx_argv[2], "width"))
|
||||
|
||||
+4
-4
@@ -816,22 +816,22 @@ WireAddContact(newType, newWidth)
|
||||
switch (oldDir)
|
||||
{
|
||||
case GEO_NORTH:
|
||||
i = contactArea.r_ytop - totalSize;
|
||||
i = contactArea.r_ytop - WireWidth;
|
||||
if (i > contactArea.r_ybot)
|
||||
contactArea.r_ybot = i;
|
||||
break;
|
||||
case GEO_SOUTH:
|
||||
i = contactArea.r_ybot + totalSize;
|
||||
i = contactArea.r_ybot + WireWidth;
|
||||
if (i < contactArea.r_ytop)
|
||||
contactArea.r_ytop = i;
|
||||
break;
|
||||
case GEO_EAST:
|
||||
i = contactArea.r_xtop - totalSize;
|
||||
i = contactArea.r_xtop - WireWidth;
|
||||
if (i > contactArea.r_xbot)
|
||||
contactArea.r_xbot = i;
|
||||
break;
|
||||
case GEO_WEST:
|
||||
i = contactArea.r_xbot + totalSize;
|
||||
i = contactArea.r_xbot + WireWidth;
|
||||
if (i < contactArea.r_xtop)
|
||||
contactArea.r_xtop = i;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user