From 09e8af10b8692941582027b89b0a19c9692d97bf Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Sat, 27 Oct 2018 13:35:49 +0200 Subject: [PATCH] remove special case (#5345) --- src/shapes/rect.class.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/shapes/rect.class.js b/src/shapes/rect.class.js index 24d7ca6113f..d051c89d1a8 100644 --- a/src/shapes/rect.class.js +++ b/src/shapes/rect.class.js @@ -78,11 +78,8 @@ */ _render: function(ctx) { - // optimize 1x1 case (used in spray brush) - if (this.width === 1 && this.height === 1) { - ctx.fillRect(-0.5, -0.5, 1, 1); - return; - } + // 1x1 case (used in spray brush) optimization was removed because + // with caching and higher zoom level this makes more damage than help var rx = this.rx ? Math.min(this.rx, this.width / 2) : 0, ry = this.ry ? Math.min(this.ry, this.height / 2) : 0,