From 1a0c15f177a386c8f43b086d6f7270370eb9b504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 27 Mar 2016 13:39:30 -0700 Subject: [PATCH] Fix #1021: use Item#getStyle() to use correct parent style in CompoundPath bounds calculations. --- src/path/Path.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index de3051a2..4db0b720 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -2573,7 +2573,7 @@ statics: { * @private */ getStrokeBounds: function(segments, closed, path, matrix, options) { - var style = path._style, + var style = path.getStyle(), stroke = style.hasStroke(), strokeWidth = style.getStrokeWidth(), strokeMatrix = stroke && path._getStrokeMatrix(matrix, options), @@ -2749,7 +2749,7 @@ statics: { * @private */ getHandleBounds: function(segments, closed, path, matrix, options) { - var style = path._style, + var style = path.getStyle(), stroke = options.stroke && style.hasStroke(), strokePadding, joinPadding;