haojianlong преди 4 години
родител
ревизия
eee330f6fb
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      package.json
  2. 2 0
      src/items/EditLineItem.ts

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/cad-engine",
-    "version": "2.0.571",
+    "version": "2.0.572",
     "description": "上格云 CAD图形引擎。",
     "main": "lib/index.js",
     "types": "lib/index.d.js",

+ 2 - 0
src/items/EditLineItem.ts

@@ -211,6 +211,8 @@ export class EditLineItem extends SGraphItem {
             ];
             this.textPos = new SPoint(dis / 2, 0);
             this.calculate();
+        } else {
+            this.lineList = [];
         }
     }