Skip to content

Commit

Permalink
Fix bug if STROKE == BUTT
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrolf committed Apr 27, 2016
1 parent 0b06c91 commit 2df861e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boxDrawing.py
Expand Up @@ -24,7 +24,7 @@
RADIUS = WIDTH / 2 # Radius for arc elements.
BLOCK_HEIGHT = 1200 # Height for block elements.
FAT_STROKE = STROKE * FAT # STROKE thickness for 'fat' lines.
BUTT = STROKE * 2 # Horizontal overlap.
BUTT = STROKE # Horizontal overlap.

# Those following values are for block elements,
# and are dependent of the values above:
Expand Down Expand Up @@ -911,7 +911,7 @@ def horHalfBar(side, fatness=1, median=MEDIAN, buttL=BUTT, buttR=BUTT):
"Halfwidth horizontal bar, left or right."

if side == 'left':
if buttR == BUTT:
if buttR == BUTT != STROKE:
buttR = 0
horLine(
boxPen,
Expand All @@ -921,7 +921,7 @@ def horHalfBar(side, fatness=1, median=MEDIAN, buttL=BUTT, buttR=BUTT):
buttL, buttR
)
elif side == 'right':
if buttL == BUTT:
if buttL == BUTT != STROKE:
buttL = 0
horLine(
boxPen,
Expand Down

0 comments on commit 2df861e

Please sign in to comment.