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

View File

@ -1 +1 @@
8.3.484
8.3.485

View File

@ -1725,7 +1725,8 @@ DBCellCopyAllCells(scx, xMask, targetUse, pArea)
/* dbCellCopyCellsFunc() allows cells to be left with duplicate IDs */
/* so generate unique IDs as needed now. */
DBGenerateUniqueIds(targetUse->cu_def, FALSE);
if (targetUse != NULL) DBGenerateUniqueIds(targetUse->cu_def, FALSE);
}
/*

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