mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-28 17:15:13 +02:00
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:
@@ -1496,6 +1496,11 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
|
||||
Rect carea;
|
||||
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();
|
||||
if (pinonly == 0)
|
||||
carea = labr;
|
||||
|
||||
Reference in New Issue
Block a user