Simplify code that checks for the need of opacity buffering a bit.

This commit is contained in:
Jürg Lehni 2012-12-01 11:06:23 -08:00
parent e7d9699999
commit f90ceb06b3

View file

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