summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/plain_bounds.asy
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/plain_bounds.asy')
-rw-r--r--Build/source/utils/asymptote/base/plain_bounds.asy7
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/base/plain_bounds.asy b/Build/source/utils/asymptote/base/plain_bounds.asy
index 871d82f01b5..b74a6ceee6a 100644
--- a/Build/source/utils/asymptote/base/plain_bounds.asy
+++ b/Build/source/utils/asymptote/base/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);