Bug 62178 - Wrong in to MSWord2003 exported formula when it contains only one parenthesis
Summary: Wrong in to MSWord2003 exported formula when it contains only one parenthesis
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
(earliest affected) release
Hardware: All Windows (All)
: medium major
Assignee: Not Assigned
Keywords: filter:doc
Depends on:
Blocks: DOC-Formula MSO-XML2003
  Show dependency treegraph
Reported: 2013-03-11 15:30 UTC by Valdas
Modified: 2021-08-05 20:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Sample document to test (12.39 KB, application/vnd.oasis.opendocument.text)
2013-03-11 15:30 UTC, Valdas

Note You need to log in before you can comment on or make changes to this bug.
Description Valdas 2013-03-11 15:30:22 UTC
Created attachment 76341 [details]
Sample document to test

If formula contains only one parenthesis or bracket (f.e: "left none A right)") then conversion to M$Word2003 document gives wrong results.

 For example open attached sample document and convert it to Word2003 document. If you open that DOC in LibO and refresh formula (by double-clicking that formula) then you see that around letters appears two parenthesis (should be only one). If open that DOC in Word2007 and refresh that formula the you see that right bracket jumps to left side.

 Attached sample document.

 This bug also exists in LibO v3.6.4.3
Comment 1 Joel Madero 2013-04-15 03:35:10 UTC
updating version to

Our version field is oldest version we see the issue, not latest it has been tested on. We use comments to say "also exists in version x.x.x.x.

Comment 2 Valdas 2013-04-16 17:39:35 UTC
This bug also exists in version (Build ID: 4b45b7b3ea06cd9d172c438ed8f2507f8150e99) from GIT (master, checkout on 2013-04-16).
Comment 3 Jacques Guilleron 2013-06-29 16:18:45 UTC
Hello Valdas,

Why not write in this case:
A \] newline
B \) newline
\( C newline
\[ D

Have a nice day,

Comment 4 Valdas 2013-06-29 17:26:15 UTC
Hello Jacques,

suggested workaround fails when scalable parenthesis is needed, for example:

 matrix {A#B##C#D} \]
Comment 5 Joel Madero 2013-06-29 19:52:35 UTC
Confirmed - another detail is that if you double click into the formula before closing the document the first time (open the document, save as 2003, immediately click into formula) you won't see the change. But if you close the document, reopen it, then click in and you'll see the change.

Major - loss/alteration of data
Medium - default is high but I don't think that this is affecting many people at all - no comments in the past 3 months or duplicates marked.

Thanks for the report!

Windows 7
LibreOffice Version
Comment 6 QA Administrators 2015-03-17 00:02:41 UTC Comment hidden (obsolete)
Comment 7 Valdas 2015-03-17 11:34:31 UTC Comment hidden (obsolete)
Comment 8 tommy27 2016-04-16 07:29:08 UTC Comment hidden (obsolete)
Comment 9 Valdas 2016-04-16 11:04:07 UTC Comment hidden (obsolete)
Comment 10 Telesto 2016-12-21 16:06:17 UTC
Still repro with:
Build ID: 9cfb2f2f03b5ec086487fd483298466db0b09010
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-12-20_23:58:02
Locale: nl-NL (nl_NL); Calc: CL
Comment 11 QA Administrators 2018-11-17 03:47:15 UTC Comment hidden (obsolete)
Comment 12 Valdas 2018-11-17 10:08:05 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2019-11-18 03:27:58 UTC Comment hidden (obsolete)
Comment 14 Valdas 2019-11-18 07:55:19 UTC
Bug still exists.

Build ID: 1:6.3.2-0ubuntu2
CPU threads: 16; OS: Linux 5.3; UI render: default; VCL: kde5; 
Locale: lt-LT (lt_LT.UTF-8); UI-Language: en-US
Calc: threaded
Comment 15 paulystefan 2020-03-16 01:27:13 UTC
LO x64 win10-64

i see on monitor

A ] 
B ) 
( C 
[ D

problem solved?
Comment 16 paulystefan 2020-03-16 01:37:24 UTC

only with with docx it is ok.
Comment 17 paulystefan 2021-05-17 12:33:47 UTC
The doc of this ODT is with actual ms office not viewable.

empty sheet in view.

in LO 7132 is only an object like a photo, but no formula object.
so this convert is failed in LO 7132.

Should future LO support export to old doc?

Import is ok, but MS Office 2016 and higher is the better importer of doc with repair and converter to Docx.

The DOCX of this ODT is ok.
Comment 18 paulystefan 2021-08-05 20:48:41 UTC
see no positive change in LO7202