Dekel Tsur wrote:
> On Mon, Aug 12, 2002 at 10:16:02AM +0000, [EMAIL PROTECTED] wrote:
>
>>CVSROOT: /usr/local/lyx/cvsroot
>>Module name: lyx-devel
>>Repository: lyx-devel/src/
>>Changes by: [EMAIL PROTECTED] 02/08/12 10:16:02
>>
>>Modified files:
>> lyx-devel/src/: BufferView2.C ChangeLog CutAndPaste.C
>>
>>Log message:
>> Don't create undos for inserting Error insets. What is missing still is that
>> before actually doing any undo we should remove "AutoInsets".
>
>
> Are you sure that this is correct ?
> If after the error insets were added, I add a char to a paragraph at position
> i, and this paragraph contain an error inset at position 0, then when
> performing undo, after removing the error inset, the position which was i
> is now i-1. Wouldn't that affect the undo ?
It shouldn't. We always safe the paragraph as a whole and insert it as a
whole, so we would not suffer from it. I find it just strange that when
doing undo the errorinset in the current paragraph vanishes while they
remain in others. Also we should probably exclude error insets from any
clone method, so that we don't have them in the undo stack, but this is
another matter.
Jug
--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. J�rgen Vigna E-Mail: [EMAIL PROTECTED]
Mitterstrich 151/A Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39050 Steinegg Web: http://www.lyx.org/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._