pcb

selectlayer() layer names

Bug #699470 reported by spaceman81
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pcb
Fix Released
Undecided
Unassigned

Bug Description

This function and action selectlayer() took layer numbers, now it also takes layer names. This function is duplicated in lesstif and gtk.

Tags: sf-patches
Revision history for this message
Ineiev (ineiev) wrote :

Hmm, the gtk part looks like something different. probably you mixed some sources.

Best regards,
   Ineiev

Revision history for this message
spaceman81 (spaceman81) wrote :
Revision history for this message
spaceman81 (spaceman81) wrote :

Youre right. User error in my operation of git diff. Fixed now.

Revision history for this message
Jared Casper (jaredcasper) wrote :

Why are you looping through groups, then layers in the group, instead of just looping through layers (i.e. use LAYER_LOOP, not your own for loop then a GROUP_LOOP).

Also, it appears that the nested for loop (the one using i) is the same thing as the GROUP_LOOP, so you are unnecessarily looping over every layer twice.

Revision history for this message
gpleda.org commit robot (gpleda-launchpad-robot) wrote :

Bug was fixed by a commit
git master commit 82a0b79c38421a08f334e42f4cdcd252d5f6900d
http://git.geda-project.org/pcb/commit/?id=82a0b79c38421a08f334e42f4cdcd252d5f6900d

commit 82a0b79c38421a08f334e42f4cdcd252d5f6900d
Author: Andrew Poelstra (local) <email address hidden>
Commit: Andrew Poelstra (local) <email address hidden>

    Make SelectLayer() respond to layer name as well as index

    Closes-bug: lp-699470

Changed in pcb:
status: New → Fix Committed
Changed in pcb:
status: Fix Committed → Fix Released
Changed in pcb:
milestone: none → pcb-20140316
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.