From f90ceb06b37f43dde438335660b8e49cb557914a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sat, 1 Dec 2012 11:06:23 -0800 Subject: [PATCH] Simplify code that checks for the need of opacity buffering a bit. --- src/item/Item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index a0713e7c..48a4062b 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -2458,8 +2458,8 @@ function(name) { // first, since otherwise their stroke is drawn half transparent // over their fill. if (item._blendMode !== 'normal' || item._opacity < 1 - && !(item._segments - && (!item.getFillColor() || !item.getStrokeColor()))) { + && (item._type !== 'path' + || item.getFillColor() && item.getStrokeColor())) { var bounds = item.getStrokeBounds(); if (!bounds.width || !bounds.height) return;