mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Removed the stupid restriction that "cellname readwrite" won't work
on a non-writeable cell. While technically valid, that just means that nobody can make temporary edits on the cell in memory, which is useful in many applications. A slight quirk of the "cellname" command is that if applied to the cell currently in the layout window, it is not possible to make the cell show as edited and editable until leaving and re-entering the cell.
This commit is contained in:
+4
-6
@@ -1084,13 +1084,11 @@ CmdCellname(w, cmd)
|
||||
if (cellDef->cd_fd == -1)
|
||||
dbReadOpen(cellDef, NULL, TRUE, NULL);
|
||||
|
||||
if (cellDef->cd_fd != -1)
|
||||
cellDef->cd_flags &= ~CDNOEDIT;
|
||||
else
|
||||
TxError("Advisory lock held on cell %s\n", cellDef->cd_name);
|
||||
#else
|
||||
cellDef->cd_flags &= ~CDNOEDIT;
|
||||
if (cellDef->cd_fd == -1)
|
||||
TxError("Warning: Cell %s is not writeable\n", cellDef->cd_name);
|
||||
#endif
|
||||
|
||||
cellDef->cd_flags &= ~CDNOEDIT;
|
||||
WindAreaChanged(w, &w->w_screenArea);
|
||||
CmdSetWindCaption(EditCellUse, EditRootDef);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user