>>>>> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes:
Martin> Rather try this one. PBCAK. I see a crash too when using down. The undo should be done from the first pit of the moved range to the last pit before the place where the section contents goes. Example [pit=0] Section 1 [pit=1] contents of section 1 [pit=2] Section 2 [pit=3] contents of section 2 [pit=4] Section 3 [pit=5] contents of section 3 After doing 'down' on Section 1, we get [pit=0] Section 2 [pit=1] contents of section 2 [pit=2] Section 1 [pit=3] contents of section 1 [pit=4] Section 3 [pit=5] contents of section 3 Consequently, undo should go from pit 0 to pit 3. Is that what you do? I cannot follow your code because I do not know what p, q and friends are (this is where using correct variable names makes sense). JMarc