Browse Source

Fix bug that prevented the point from being drawn

Lucas de Souza 5 years ago
parent
commit
270cb95c92
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/app/components/point.js

+ 3 - 2
src/app/components/point.js

@@ -29,8 +29,8 @@ export const point = (function() {
       this.points[0] = pos.x;
       this.points[1] = pos.y;
       let p = this.points.slice();
-      this._drawPoint(p[0], p[1], true);
-      this._clearState();
+      this.drawPoint(p[0], p[1], true);
+      state = undefined;
       App.clearSelectedTool();
       App.setStatus("");
     }
@@ -119,6 +119,7 @@ export const point = (function() {
     icon: "point",
     click: _click,
     draw: _draw,
+    drawPoint: _drawPoint,
     points: points
   };