Add new attribute inserts only heading not whole column
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
Low
|
Peter TB Brett |
Bug Description
The version of gattrib I'm using (1.4.0.20080127 from the Debian lenny
repos) has the option to add a new attribute column (Edit > Add new
attribute column).
The problem is that this inserts a new heading but not the whole new column so what happens is that the headings after the newly inserted one shift right but the data in the columns underneath them does not. Hence the attribute values end up being renamed as different attributes.
Saving this then corrupt the whole schematic. Since there is no "undo" function, the only safe option is to cancel and lose all changes.
I'll try to illustrate what happens.
Say all the components in my schematic have attributes A, B and D and I want to add a new attribute C to all the components.
All my components have attribute information already entered for each of A, B and D.
When I run gattrib, I get a table with column headings A, B and D with values under each of the relevant columns.
If I add now a new column C then a new column heading for C is inserted between columns B and D and the existing column D heading is shifted one column to the right.
However, no new column is inserted under the C heading so the existing column contents do not shift right. Therefore, the column contents that were originally under column heading D are now under column heading C whilst the column under heading D is empty.
If I save this then of course all the component attribute values that were originally named D are now named C.
If instead, before I run gattrib, I add the new attribute to at least one instance of a component in the schematic then of course when gattrib is run the table has all four column headings A, B, C and D with the attribute values in the right columns.
This is clearly not what should happen and seems to reflect the behaviour of gattrib prior to the introduction of the add new attribute function but with the new function partly implemented.
The attached screenshots show gattrib before and after and the effect on the attributes of one component in the associated gschem schematic.
Thanks,
Andy.
Changed in geda: | |
assignee: | nobody → Joe Mac (joe-eli-mac) |
Changed in geda: | |
assignee: | Joe Mac (joe-eli-mac) → Peter TB Brett (peter-b) |
Changed in geda: | |
milestone: | none → 1.8.0 |
Changed in geda: | |
status: | Confirmed → In Progress |
Changed in geda: | |
status: | Fix Committed → Fix Released |
This should have gone in the text but I can't find a way to edit the submission (new to this app).
Obviously all the values that end up under the wrong column heading can be manually cut and pasted to the right but this is very tedious because it can only be done one cell at a time.
Also, other relevant info:
OS: Mepis 8.0.6 64 bit Linux.
PC: Athlon 64 bit dual core, 8Gb RAM.
gEDA installation from Lenny 64bit repos.