Mailing list archives : pcb-rnd

ID:3437
From:ge...@igor2.repo.hu
Date:Sat, 12 Oct 2019 09:45:49 +0200 (CEST)
Subject:Re: [pcb-rnd] Bug report: Rats context menu references incorrect
in-reply-to:3429 from Majenko Technologies <ma...@majenko.co.uk>
Hi Majenko,
 
On Fri, 11 Oct 2019, Majenko Technologies wrote:
 
>If you right click on "Rats" and select "Layer Properties" it displays the
>layer properties box for the currently selected physical layer.
>
>1. Select any layer in any PCB (even a blank one)
>2. Right click Rats
>3. Select "Layer Properties"
>
>The same goes for "Layer name and flags" and the "move" options (it moves
>the most recently selected physical layer). Even "insert new..." affects the
>most recently selected physical. In fact, everything in that context menu is
>wrong.
 
Good catch, thanks!
 
Fixed in r27849 by disabling the menu for Rats. Please test.
 
Rationale: the functionality implemented in the popup menu (and the 
mechanism how the whole layer/group popup menu works) requires a real 
layer to operate on. Rats, being a virtual layer, has no real layer behind 
it and drawing "on it" is not really drawing on a layer but an old, ugly 
special casing for drawing layer-independent rat lines. So the special 
case that fooled the code was this: a virtual layer that is still 
selectable and drawable. 
 
Regards,
 
Igor2
 

Reply subtree:
3437 Re: [pcb-rnd] Bug report: Rats context menu references incorrect from ge...@igor2.repo.hu