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

            Bug ID: 141320
           Summary: [RTF] .rtf Rich Text: broken file error due to
                    inserted formula
           Product: LibreOffice
           Version: 7.0.5.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: mail-bugzi...@fluglicht.com

Description:
Using a formula in a Rich Text (.rtf) document can lead to a broken file.
LibreOffice throws a File format error, when trying to open the document
afterwards. The Reason seems to be, that under certain circumstances, a
parenthesis mismatch is produced in the file, leaving an open parenthesis from
the formula object in the rich text syntax (see reproduction steps below).

Steps to Reproduce:
1. Insert a formula (via Insert > Object > Formula)
2. Save document as RTF
3. Remove the formula using backspace
4. Undo the removal
5. Save and close document
6. Opening document throws file format error, due to syntax error in the file.

Actual Results:
File format error found at 19,7
/build/libreoffice-still/src/libreoffice-7.0.5.2/writerfilter/source/rtftok/rtfdocumentimpl.cxx:817(row,col).

Expected Results:
Keep the syntax intact.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.0.5.2
Build ID: 00(Build:2)
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: kf5
Locale: de-DE (en_GB.UTF-8); UI: en-GB
7.0.5-1
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to