mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -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
|
* @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;
|
||||||
|
|
Loading…
Reference in a new issue