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)) {