grep shows another occurrence in misc.c. there are a lot of things that I can't undestand in PCB code, e.g. why any line should have thermals flags to every layer. so, I just tried (not very successfully) to propose most conservative changes that fix the evidently buggy behaviour and concern nothing else.
>LINE_MODE test is superfluous -- that code only executes in line mode).
Actually I think this was a mistake because the code executes also in polygon mode and SetLocalRef() should be called then, too.
>That's the only use of LOCALREFFLAG anywhere.
grep shows another occurrence in misc.c. there are a lot of things that I can't undestand in PCB code, e.g. why any line should have thermals flags to every layer. so, I just tried (not very successfully) to propose most conservative changes that fix the evidently buggy behaviour and concern nothing else.
>LINE_MODE test is superfluous -- that code only executes in line mode).
Actually I think this was a mistake because the code executes also in polygon mode and SetLocalRef() should be called then, too.
Best regards