修复:避免错误

pull/1079/head
ChenX 4 years ago
parent 4c3c7727ce
commit 0079ca5482

@ -17,7 +17,6 @@ export class BoardReplaceTempate
if (!temp) return;
en.IsChaiDan = false;
en.Visible = false;
let pos = new PositioningBoardSpace();
pos.ObjectId = en.Id;

@ -18,7 +18,7 @@ export class PositioningBoardSpace extends Positioning
this.SpaceCS = undefined;
this.SpaceSize = undefined;
if (!this.ObjectId.IsErase)
if (this.ObjectId && !this.ObjectId.IsErase)
{
let ent = this.ObjectId.Object as Board;
this.SpaceCS = ent.OCS;

Loading…
Cancel
Save