소스 검색

修复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);