Skip to content

Commit

Permalink
Fix orientation markers for PCB visualizations (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwright6323 authored Aug 11, 2021
1 parent 7bb86cf commit 66b757e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hammer-vlsi/hammer_vlsi/hammer_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def get_macro_wh(macro: Optional[str]) -> Tuple[Decimal, Decimal]:
# only supports r0, mx, my, r180
line_start_end = [c_x, top.height-c.y-height/4, c_x + width/8, top.height-c.y] # x1, y1, x2, y2
if c.orientation is not None:
if c.orientation.lower() in ["my", "r180"] or is_pcb_tool:
if (c.orientation.lower() in ["my", "r180"]) ^ is_pcb_tool:
line_start_end[0] += width
line_start_end[2] += width*6/8
if c.orientation.lower() in ["mx", "r180"]:
Expand Down

0 comments on commit 66b757e

Please sign in to comment.