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.
This commit is contained in:
parent
eeeaf49ec7
commit
cb73ebfab0
|
|
@ -1496,6 +1496,11 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
|
||||||
Rect carea;
|
Rect carea;
|
||||||
labelLinkedList *newlll;
|
labelLinkedList *newlll;
|
||||||
|
|
||||||
|
/* SelectClear() requires SelectRootDef be non-NULL, although
|
||||||
|
* this might be an error in SelectClear(), since SelectClear()
|
||||||
|
* clears the selection, not the source.
|
||||||
|
*/
|
||||||
|
if (SelectRootDef == NULL) SelectRootDef = lefFlatDef;
|
||||||
SelectClear();
|
SelectClear();
|
||||||
if (pinonly == 0)
|
if (pinonly == 0)
|
||||||
carea = labr;
|
carea = labr;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue