> Note that reference to an inset is a very fragile thing. I guess that
> an undo-redo cycle will reallocate the inset.
Stored insets are used in two ways:
1. navigation. Because I compare a stored inset pointer with currently
available ones. If the stored pointer does not exist, navigation of
th
"Bo Peng" <[EMAIL PROTECTED]> writes:
> My question is: is there any reliable way to store the reference to an
> inset? Basically, I need to save something about an inset, and look up
> that inset with it easily later.
Note that reference to an inset is a very fragile thing. I guess that
an undo-
On Sat, Sep 08, 2007 at 11:06:04PM -0500, Bo Peng wrote:
> Currently, EmbeddedFiles stores a list of ParConstIterator that can be
> used to locate the inset's paragraph. This has a number of problems:
>
> 1. I can only move the cursor to the beginning of the paragraph, not
> where the inset is.
>
> I spent a few hours on this idea, and everything seems to be fine
> until I use inset_iterator_begin(inset_ptr) to locate the inset. Lyx
> instantly crashes. It turns out the the stored inset pointer is
> obsolete without any buffer edition.
It turns out that I can not use 'inset_iterator_begin(