mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 14:17:43 +02:00
Corrected a bad error from a few commits ago, probably 198, which
can deallocate the cell name and causes all sorts of unexpected and unwanted behavior.
This commit is contained in:
+2
-2
@@ -112,7 +112,7 @@ CIFInitCells()
|
||||
CIFTotalDef = DBCellLookDef("__CIF__");
|
||||
if (CIFTotalDef == (CellDef *) NULL)
|
||||
{
|
||||
CIFTotalDef = DBCellNewDef ("__CIF__",(char *) NULL);
|
||||
CIFTotalDef = DBCellNewDef("__CIF__");
|
||||
ASSERT(CIFTotalDef != (CellDef *) NULL, "cifMakeCell");
|
||||
DBCellSetAvail(CIFTotalDef);
|
||||
CIFTotalDef->cd_flags |= CDINTERNAL;
|
||||
@@ -124,7 +124,7 @@ CIFInitCells()
|
||||
CIFComponentDef = DBCellLookDef("__CIF2__");
|
||||
if (CIFComponentDef == (CellDef *) NULL)
|
||||
{
|
||||
CIFComponentDef = DBCellNewDef ("__CIF2__",(char *) NULL);
|
||||
CIFComponentDef = DBCellNewDef("__CIF2__");
|
||||
ASSERT(CIFComponentDef != (CellDef *) NULL, "cifMakeCell");
|
||||
DBCellSetAvail(CIFComponentDef);
|
||||
CIFComponentDef->cd_flags |= CDINTERNAL;
|
||||
|
||||
+1
-1
@@ -273,7 +273,7 @@ cifFindCell(cifNum)
|
||||
def = DBCellLookDef(name);
|
||||
if (def == NULL)
|
||||
{
|
||||
def = DBCellNewDef(name, (char *) NULL);
|
||||
def = DBCellNewDef(name);
|
||||
|
||||
/* Tricky point: call DBReComputeBbox here to make SURE
|
||||
* that the cell has a valid bounding box. Otherwise,
|
||||
|
||||
Reference in New Issue
Block a user