mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 10:48:38 -05:00
Fix #1021: use Item#getStyle() to use correct parent style in CompoundPath bounds calculations.
This commit is contained in:
parent
3b71de9544
commit
1a0c15f177
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue