Another correction that avoids a crash condition when attempting
to do an instance array resizing on an uneditable cell.
This commit is contained in:
parent
cf5fd867f4
commit
e9db9ecbc9
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue