Skip to content

Commit cb73ebf

Browse files
Corrected an error in lefWrite where SelectClear() is called
without SelectRootDef being set, which causes SelectClear() to return without doing anything. However---question is why SelectClear() needs SelectRootDef to be non-NULL since it is clearing the selection, not the selection source. For now, just patching the failing case, not trying to mess with the whole selection mechanism.
1 parent eeeaf49 commit cb73ebf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lef/lefWrite.c

+5
Original file line numberDiff line numberDiff line change
@@ -1496,6 +1496,11 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
14961496
Rect carea;
14971497
labelLinkedList *newlll;
14981498

1499+
/* SelectClear() requires SelectRootDef be non-NULL, although
1500+
* this might be an error in SelectClear(), since SelectClear()
1501+
* clears the selection, not the source.
1502+
*/
1503+
if (SelectRootDef == NULL) SelectRootDef = lefFlatDef;
14991504
SelectClear();
15001505
if (pinonly == 0)
15011506
carea = labr;

0 commit comments

Comments
 (0)