diff --git a/src/components/SceneDesigner/OffsetLine.vue b/src/components/SceneDesigner/OffsetLine.vue index fb302b6..62a440e 100644 --- a/src/components/SceneDesigner/OffsetLine.vue +++ b/src/components/SceneDesigner/OffsetLine.vue @@ -27,8 +27,8 @@ export default { let h = Math.sqrt(dx*dx + dy*dy); this.ox1 = this.x1 + this.o1 * Math.cos(a); this.oy1 = this.y1 + this.o1 * Math.sin(a); - this.ox2 = this.x1 + (h-this.o1) * Math.cos(a); - this.oy2 = this.y1 + (h-this.o1) * Math.sin(a); + this.ox2 = this.x1 + (h-this.o2) * Math.cos(a); + this.oy2 = this.y1 + (h-this.o2) * Math.sin(a); } } }