>>>>> "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes:

Michael> Hi, with regard to bugs #575 and #438, I can provide yet
Michael> another test case. Unfortunately, undo crashes quite often.
Michael> Any solution is highly appreciated.

Here is what I just wrote for #575:

I thought I wrote about this one, but it seems that I did not. 
If you look at the sources around text.C:2782 for 1.2.x
(method LyXText::backspace), you will find that this is
not a bug but a feature:

/* Pasting is not allowed, if the paragraphs have different
   layout. I think it is a real bug of all other
   word processors to allow it. It confuses the user.
   Even so with a footnote paragraph and a non-footnote
   paragraph. I will not allow pasting in this case,
   because the user would be confused if the footnote behaves
   different wether it is open or closed.

   Correction: Pasting is always allowed with standard-layout
*/

And then later you find

if (cursor.par() != tmppar
    && (cursor.par()->layout() == tmppar->layout()
        || tmppar->layout() == tclass.defaultLayoutName())
    && cursor.par()->getAlign() == tmppar->getAlign()) {
[...]

So the discussion should rather be about the usefulness of this
feature. What would be the right behaviour in your opinion?

JMarc

Reply via email to