diff --git a/linolib/box.lino b/linolib/box.lino index 0e5ba97..b5ac4ce 100644 --- a/linolib/box.lino +++ b/linolib/box.lino @@ -9,10 +9,10 @@ define box { point nw, n, ne, e, se, s, sw, w, c; number ht, wd; constraints { - nw = left.start = top.start; - ne = right.start = top.end; - sw = left.end = bottom.start; - se = right.end = bottom.end; + nw = left.end = top.start; + ne = right.end = top.end; + sw = left.start = bottom.start; + se = right.start = bottom.end; n = (nw + ne)/2; s = (sw + se)/2; diff --git a/t/box001-i b/t/box001-i index 3a71b32..d06b199 100644 --- a/t/box001-i +++ b/t/box001-i @@ -6,7 +6,7 @@ box B; constraints { B.ht = 2; B.wd = 3; - B.nw = (0,0); + B.sw = (0,0); } diff --git a/t/labelbox001-i b/t/labelbox001-i index 1a59e83..a7113c8 100644 --- a/t/labelbox001-i +++ b/t/labelbox001-i @@ -4,7 +4,7 @@ require "labelbox"; labelbox L(text="fooey"); constraints { - L.nw = (2,3); + L.sw = (2,3); L.wd = 4; L.ht = 5; } diff --git a/t/labelbox002-i b/t/labelbox002-i index 127bffe..d7e34bc 100644 --- a/t/labelbox002-i +++ b/t/labelbox002-i @@ -16,7 +16,7 @@ define labelbox extends box { labelbox L(text="fooey"); constraints { - L.nw = (2,3); + L.sw = (2,3); L.wd = 4; L.ht = 5; } diff --git a/t/labelbox003-i b/t/labelbox003-i index a8350dc..8b03db4 100644 --- a/t/labelbox003-i +++ b/t/labelbox003-i @@ -4,7 +4,7 @@ require "labelbox"; labelbox L(label.text="fooey"); constraints { - L.nw = (2,3); + L.sw = (2,3); L.wd = 4; L.ht = 5; }