[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: Attributes





> >Ok I select the part now and runs Attribute Attach. Nothing
> >happens! Nothing! So it doesn´t segfault anymore, it does...nothing but
> >complaining. 
> 
> 
> 	Would you rather it core dump? <grin>

Yes! Then gdb says -"Here is the error". Could you make gschem dump core
when there is a pilot error, so gdb could tell me -"You screwed up"? :-)


> >But... if you select the old uref and (by pressing down Ctrl) then also
> >select the component and finally selects Attribute Attach I get 
> >	You cannot attach non text items as attributes!
> 
> 
> 	You've got the order of the selection backwards.  If you select
> the component first, then any attributes (text items), and then pick
> Attributes/Attach, the attributes will be attached (turn yellow). 
> The error message above is telling you that you can't attach a component
> (or for that matter any non-text item) as an attribute.

AHA!!! "I have seen the light" (Yes, free quote from the Blues Brother
movie).

That explains it. And it works as you said.


> then the text item, so that is why it works.  Order is important.

But dependent on which _order_ you select it...fishy. But what the
... once you know it, it makes perfect sense.


> 	Makes perfect sense.  Now, why is this implemented this way? 
> Well, because it is easy and once you get used to it, it's a really fast
> way to attach/detach attributes (text items) to various places.  If   
> there's a better way, which doesn't involve more clicks/keystrokes or
> popup dialog boxes, I'm all ears.

Makes perfect sense once you realized it. I don't now why I haven't
stumbled on this one before? Did it come with your new selection code?


> 	Hope that helps.  I'll look at your other bug (nets not being
> saved with the right color) later tonight.

And you included all other changes too! As I said, splendid, Ales!

Regards,
/spe, a bit more enlightened now

/----------------------------------\
! Stefan Petersen, MSc EE         !  \    
! http://www.stacken.kth.se/~spe/ !    \___________
! spe@stacken.kth.se              !    /
! stefan.petersen@home.se         !  /
\----------------------------------/