Fix #1021: use Item#getStyle() to use correct parent style in CompoundPath bounds calculations.

This commit is contained in:
Jürg Lehni 2016-03-27 13:39:30 -07:00
parent 3b71de9544
commit 1a0c15f177

View file

@ -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;