On Thursday 07 December 2000 15:26, Dekel Tsur wrote:

> > On Thu, Dec 07, 2000 at 02:57:52PM +0000, Angus Leeming wrote:
> > > Note that while changing a regular label will also changes the
> > > references to the label, changing a math label doesn't change the
> > > references. This bug will be fixed in 1.1.6, and maybe in 1.1.5fix3
> >
> > Dekel, (not having looked at the code), does this mean that you now store
> > a list of references rather than build them on the fly when
> > loading/updating the reference popup? If so, you could emit a updateRefs
> > signal when you change this list and the references in the popup will
> > update automatically. We could then remove the "Update" button from the
> > popup. Same with the TOC.
>
> No. I just added a call to ChangeRefsIfUnique() after a math label is
> changed (in mathed/formula.C).
>
> BTW, this patch hasn't been applied yet.
> Here it is, with the auto label init code commented out.
> I'll also prepare a version for 1.1.5fix

So this patch is simply a bug fix at the moment? Copy an InsetLabel, paste it 
elsewhere and change the label and you don't mess up all references to it. 
The clever, automatic label naming stuff, has been #ifdef-ed out.

Anyway, back to my desire for automatically updated labels in the InsetRef 
popup. This code would lead directly to it if we:
1. Call ChangeRefsIfUnique() from the InsetLabel d-tor.
2. Emit an updateRefs signal from ChageRefs().

Angus

Reply via email to