From 325ae8a1340bb08dffb0b6dd158fa028382210a4 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 9 Jul 2016 10:46:14 +0200 Subject: [PATCH] Make flex centered Leave one space before and after the first/last cut. Resolves https://github.com/florianfesti/boxes/issues/11 --- boxes/edges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boxes/edges.py b/boxes/edges.py index 535495f..5fcee75 100644 --- a/boxes/edges.py +++ b/boxes/edges.py @@ -1104,7 +1104,7 @@ class FlexEdge(BaseEdge): sections = int((h-connection) // width) sheight = ((h-connection) / sections)-connection - for i in range(lines): + for i in range(1, lines): pos = i*dist + leftover/2 if i % 2: self.ctx.move_to(pos, 0)