From ac7d51d9390dc688264471a983b9c4036c0ab6ce Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 27 Jul 2019 20:45:10 +0900 Subject: [PATCH] Fixed issue with rect's stroke --- desktop/sources/scripts/surface.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/desktop/sources/scripts/surface.js b/desktop/sources/scripts/surface.js index a77c90d..d9584e8 100644 --- a/desktop/sources/scripts/surface.js +++ b/desktop/sources/scripts/surface.js @@ -81,13 +81,12 @@ function Surface (ronin) { this.trace = function (shape, context) { if (isRect(shape)) { this.traceRect(shape, context) + } else if (isPos(shape)) { + this.tracePos(shape, context) } if (isLine(shape)) { this.traceLine(shape, context) } - if (isPos(shape)) { - this.tracePos(shape, context) - } if (isCircle(shape)) { this.traceCircle(shape, context) } else if (isText(shape)) {