diff --git a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx index 0548c73c..52056e39 100644 --- a/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx +++ b/src/components/floor-plan/modal/outerlinesetting/OuterLineWall.jsx @@ -201,12 +201,7 @@ export default function OuterLineWall(props) { canvas?.add(line) addLineText(line) } else { - const nearPoint = - distanceBetweenPoints(firstPoint, { x: lastPoint.x, y: firstPoint.y }) <= - distanceBetweenPoints(firstPoint, { x: firstPoint.x, y: lastPoint.y }) - ? [lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y] - : [lastPoint.x, lastPoint.y, firstPoint.x, lastPoint.y] - const guideLine1 = new QLine(nearPoint, { + const guideLine1 = new QLine([lastPoint.x, lastPoint.y, lastPoint.x, firstPoint.y], { stroke: 'grey', strokeWidth: 1, strokeDashArray: [1, 1, 1],