diff --git a/database/DBcellsubr.c b/database/DBcellsubr.c index a430d671..4b9f96a8 100644 --- a/database/DBcellsubr.c +++ b/database/DBcellsubr.c @@ -157,7 +157,8 @@ dbCopyDefFunc(tile, def) * DBCellClearDef -- * * Empties out all tile planes of the indicated CellDef, making it - * as though the def had been newly allocated. + * as though the def had been newly allocated. This also removes all + * labels and all properties from the cell. * * Results: * None. @@ -221,6 +222,10 @@ DBCellClearDef(cellDef) freeMagic((char *) lab); cellDef->cd_labels = (Label *) NULL; cellDef->cd_lastLabel = (Label *) NULL; + + /* Remove all defined properties */ + DBPropClearAll(cellDef); + SigEnableInterrupts(); }