summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/plain_bounds.asy
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-08 18:41:28 +0000
committerKarl Berry <karl@freefriends.org>2013-04-08 18:41:28 +0000
commita3358f7394e3adabeff44a4858bab8f13cbe1180 (patch)
tree014354d566c06a47c483b7231af921247180f770 /Master/texmf-dist/asymptote/plain_bounds.asy
parent11bcd1a52098dab6ac5baa790409a2261a31755f (diff)
asymptote 2.21
git-svn-id: svn://tug.org/texlive/trunk@29753 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/plain_bounds.asy')
-rw-r--r--Master/texmf-dist/asymptote/plain_bounds.asy7
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/asymptote/plain_bounds.asy b/Master/texmf-dist/asymptote/plain_bounds.asy
index 871d82f01b5..b74a6ceee6a 100644
--- a/Master/texmf-dist/asymptote/plain_bounds.asy
+++ b/Master/texmf-dist/asymptote/plain_bounds.asy
@@ -1,6 +1,6 @@
include plain_scaling;
-// After an transformation, produce new coordinate bounds. For paths that
+// After a transformation, produce new coordinate bounds. For paths that
// have been added, this is only an approximation since it takes the bounds of
// their transformed bounding box.
private void addTransformedCoords(coords2 dest, transform t,
@@ -466,8 +466,9 @@ private struct freezableBounds {
acc.pushUserCoords(min, max);
if (pathBounds.length > 0)
acc.push(min(pathBounds), max(pathBounds));
- for (var pp : pathpenBounds)
- acc.push(min(pp.g), max(pp.g));
+ for (var pp : pathpenBounds)
+ if(size(pp.g) > 0)
+ acc.push(min(pp.g), max(pp.g));
for (var link : links)
link.accumulateUserBounds(acc);