[Libreoffice-bugs] [Bug 131147] New: Assert: Undoing deletion ( redline )

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 5 10:01:06 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=131147

            Bug ID: 131147
           Summary: Assert: Undoing deletion ( redline )
           Product: LibreOffice
           Version: 6.4.0.0.alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: xiscofauli at libreoffice.org

This is a follow-up bug of bug 130680

Steps to reproduce:
1. Open attachment 81619 from bug 66302
2. Select all
3. Cut/Delete -> it crashes before bug 130680 fix
4. Undo

-> Assert ( see https://bugs.documentfoundation.org/show_bug.cgi?id=130680#c5 )

sw/source/core/undo/undobj.cxx:1450: static void SwUndo::SetSaveData(SwDoc&,
SwRedlineSaveDatas&): Assertion `rSData.empty() || (rSData[0].nRedlineCount ==
rDoc.getIDocumentRedlineAccess().GetRedlineTable().size())' failed.

the one delete redline that is inserted on 
  <SwPaM> = SwPaM = {
    point = SwPosition (node 2497, offset 65),
    mark = SwPosition (node 528, offset 138)
  }, 

is split into 560 separate redlines by questionable code added in commit
dc9a0b124272a6dc0a8d875d51b6f882e60a8a04 "tdf#127101 Change tracking: reject
format at paragraph join" - of course you're supposed to get the same situation
after Undo as initially...

The assert was also caught by the unittest added in
https://git.libreoffice.org/core/commit/e4208eb2c067afe77eb85699b9951d4a5df599f3.
so it's commented out for the time being

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200305/c5560c39/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list