From cd5a0c420dcdbcd1f9fba24468750c8e5bbc8eb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Lindqvist?= Date: Wed, 24 Jan 2018 18:20:30 +0100 Subject: [PATCH] pdf.layout: change-last needs prefix due to name clash from accessors --- extra/pdf/layout/layout.factor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/pdf/layout/layout.factor b/extra/pdf/layout/layout.factor index cfb66648f4..cb077e3afa 100644 --- a/extra/pdf/layout/layout.factor +++ b/extra/pdf/layout/layout.factor @@ -1,6 +1,5 @@ ! Copyright (C) 2011-2012 John Benediktsson ! See http://factorcode.org/license.txt for BSD license - USING: accessors assocs calendar combinators environment fonts formatting fry io io.streams.string kernel literals locals make math math.order math.ranges namespaces pdf.canvas pdf.values @@ -252,7 +251,7 @@ M: table-row pdf-render ] each widths >alist sort-keys values ! make last cell larger - dup sum 400 swap [-] [ + ] curry dupd change-last + dup sum 400 swap [-] [ + ] curry dupd sequences.extras:change-last ! size down each column dup sum dup 400 > [ 400 swap / [ * ] curry map ] [ drop ] if ; -- 2.34.1