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 * @private
*/ */
getStrokeBounds: function(segments, closed, path, matrix, options) { getStrokeBounds: function(segments, closed, path, matrix, options) {
var style = path._style, var style = path.getStyle(),
stroke = style.hasStroke(), stroke = style.hasStroke(),
strokeWidth = style.getStrokeWidth(), strokeWidth = style.getStrokeWidth(),
strokeMatrix = stroke && path._getStrokeMatrix(matrix, options), strokeMatrix = stroke && path._getStrokeMatrix(matrix, options),
@ -2749,7 +2749,7 @@ statics: {
* @private * @private
*/ */
getHandleBounds: function(segments, closed, path, matrix, options) { getHandleBounds: function(segments, closed, path, matrix, options) {
var style = path._style, var style = path.getStyle(),
stroke = options.stroke && style.hasStroke(), stroke = options.stroke && style.hasStroke(),
strokePadding, strokePadding,
joinPadding; joinPadding;