Another correction that avoids a crash condition when attempting

to do an instance array resizing on an uneditable cell.
This commit is contained in:
Tim Edwards
2024-05-25 21:15:01 -04:00
parent cf5fd867f4
commit e9db9ecbc9
3 changed files with 11 additions and 7 deletions
+8 -5
View File
@@ -1247,11 +1247,14 @@ SelectAndCopy2(newSourceDef)
(void) DBCellCopyAllCells(&scx, CU_DESCEND_SPECIAL, EditCellUse, (Rect *) NULL);
GeoTransRect(&scx.scx_trans, &scx.scx_area, &editArea);
DBAdjustLabels(EditCellUse->cu_def, &editArea);
DBWAreaChanged(EditCellUse->cu_def, &editArea, DBW_ALLWINDOWS,
(TileTypeBitMask *) NULL);
DRCCheckThis(EditCellUse->cu_def, TT_CHECKPAINT, &editArea);
DBReComputeBbox(EditCellUse->cu_def);
if (EditCellUse != NULL)
{
DBAdjustLabels(EditCellUse->cu_def, &editArea);
DBWAreaChanged(EditCellUse->cu_def, &editArea, DBW_ALLWINDOWS,
(TileTypeBitMask *) NULL);
DRCCheckThis(EditCellUse->cu_def, TT_CHECKPAINT, &editArea);
DBReComputeBbox(EditCellUse->cu_def);
}
SelectRootDef = newSourceDef;
SelSetDisplay(SelectUse, SelectRootDef);