mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-29 01:24:51 +02:00
Another correction that avoids a crash condition when attempting
to do an instance array resizing on an uneditable cell.
This commit is contained in:
+8
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user