From: Andrew P. <69...@bu...> - 2011-08-26 01:35:44
|
My new Gtk layer selector widget will fix all these. The widget doesn't care about the difference between rats, silk and copper, so it is consistent in its treatment of them. It also has new accelerators to allow selection and toggling of up to 20 layers. ** Changed in: pcb Assignee: Jared Casper (jaredcasper) => Andrew Poelstra (asp11) -- You received this bug notification because you are a member of PCB Bug Team, which is subscribed to pcb. https://bugs.launchpad.net/bugs/699482 Title: Fix sf-2924962 and other issues with layer selection Status in PCB: Printed Circuit Board CAD package: Incomplete Bug description: In general there was a lack of consistency in the behavior when changing the visibility of layers using the buttons and menu. This fixes both the hang in the bug report (lp:699308), and many other small issues. The code attempted to make it so that the active layer was always visible, but failed in a few places, such as when the silk or rats layers were activated while hidden or hidden while active, or when the last layer group was active and hidden, it remained active. There was also issues when the active layer was hidden using the menus. This patch fixes all of that. This patch allows the active layer to become the silk or rats layer if no copper layer is visible. It was necessary to add an additional flag to ChangeGroupVisibility() to indicate if the hid should be notified via the LayersChanged action. This was causing problem when the menu was used to hide the active layer, an extra LayersChanged call was scheduling a ghid_menu_cb which reverted the change to the layer visibility. In generally this was causing also just causing a lot of extra calls to update the gui when the gui itself was calling ChangeGroupVisibility and was going to be updating itself later on anyway. For the most part I set the new flag to be true (to keep the old behavior) except when it was causing problems and definitely correct to set it to false. To manage notifications about this bug go to: https://bugs.launchpad.net/pcb/+bug/699482/+subscriptions |