mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 01:43:00 +02:00
Corrected the "property put" command to handle changes in the
GDS_FILE property in the same way that it handles changes to the
FIXED_BBOX property, by setting or clearing the associated flag
bit in the cell. Otherwise, it becomes impossible to make a
cell writeable, as it always has some belief that it is still
attached to a specific GDS file. Corrected an error in the
"gds" ("calma") command parsing that switched the callbacks for
the "noduplicates" and "nodatestamp" options.
This commit is contained in:
+1
-1
@@ -145,8 +145,8 @@ CmdCalma(w, cmd)
|
||||
"library [yes|no] do not output the top level, only subcells",
|
||||
"lower [yes|no] allow both upper and lower case in labels",
|
||||
"merge [yes|no] merge tiles into polygons in the output",
|
||||
"noduplicates [yes|no] do not read cells that exist before reading GDS",
|
||||
"nodatestamp [yes|no] write a zero value creation date stamp",
|
||||
"noduplicates [yes|no] do not read cells that exist before reading GDS",
|
||||
"read file read Calma GDS-II format from \"file\"\n"
|
||||
" into edit cell",
|
||||
"readonly [yes|no] set cell as read-only and generate output from GDS file",
|
||||
|
||||
@@ -83,6 +83,15 @@ DBPropPut(cellDef, name, value)
|
||||
cellDef->cd_flags |= CDFIXEDBBOX;
|
||||
}
|
||||
|
||||
/* Special handling of GDS_FILE, which uses CDVENDORGDS as a quick lookup */
|
||||
if (!strcmp(name, "GDS_FILE"))
|
||||
{
|
||||
if (value == (ClientData)NULL)
|
||||
cellDef->cd_flags &= ~CDVENDORGDS;
|
||||
else
|
||||
cellDef->cd_flags |= CDVENDORGDS;
|
||||
}
|
||||
|
||||
entry = HashFind(htab, name);
|
||||
oldvalue = (char *)HashGetValue(entry);
|
||||
if (oldvalue != NULL) freeMagic(oldvalue);
|
||||
|
||||
Reference in New Issue
Block a user