瀏覽代碼

修复bug

xushiting 2 年之前
父節點
當前提交
be774ab70a
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/graphic/Renderer/Draw.js

+ 3 - 0
src/graphic/Renderer/Draw.js

@@ -1393,6 +1393,9 @@ export default class Draw {
 
   drawLine(vector) {
     const startReal = dataService.getPoint(vector.startId);
+    if (!startReal) {
+      return;
+    }
     const start = coordinate.getScreenXY(startReal);
     const endReal = dataService.getPoint(vector.endId);
     const end = coordinate.getScreenXY(endReal);