Bug 53356 - FILEOPEN formula in imported DOCX has wrong vertical position.
Summary: FILEOPEN formula in imported DOCX has wrong vertical position.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
3.5.4 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-10 21:17 UTC by Stephan van den Akker
Modified: 2017-07-12 20:16 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example MSO 2007 document containing formula. (24.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2012-08-10 21:17 UTC, Stephan van den Akker
Details
Screenshot of MSO 2007 showing the sample document (52.01 KB, image/png)
2012-08-10 21:20 UTC, Stephan van den Akker
Details
How it looks using Mac OSX 10.8.2 LO 4.1 (54.07 KB, application/pdf)
2013-01-24 23:54 UTC, Jorendc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan van den Akker 2012-08-10 21:17:24 UTC
Created attachment 65404 [details]
Example MSO 2007 document containing formula.

How to reproduce:
- Import DOCX document (see attachement)
- Both formulas are positioned to high relative to the text
- Double click on formula to edit;
- Exit formula editor;
The formula is correctly positioned now.

Problem observed in: 
Libreoffice 3.5.4 on openSuSE 11.4 (64-bit)
Libreoffice version 3.6.0.4 (Build ID: 360m1(Build:104)) on openSuSE 11.4 (32-bit)
Libreoffice-master version 3.7.0.0.alpha0+ (Build ID: 769e2b5) on openSuSE 11.4 (32-bit)
Comment 1 Stephan van den Akker 2012-08-10 21:20:18 UTC
Created attachment 65405 [details]
Screenshot of MSO 2007 showing the sample document
Comment 2 Stephan van den Akker 2012-08-10 22:13:01 UTC
In my full-debug master build, these lines appear on the console during the importing of the DOCX document:

warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/docprop/docprophandler.cxx:319: For now unexpected tags are ignored!
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/helper/propertyset.cxx:143: PropertySet::implSetPropertyValue - cannot set property "FillStyle"
warn:writerfilter:27915:1:/home/stephan/Software/libreoffice-master/core/writerfilter/source/dmapper/OLEHandler.cxx:114: Exception in OLE Handler: position cannot be determined with this method
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/vml/vmlshapecontainer.cxx:49: lclMapShapesById - shape identifier already used
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/helper/propertyset.cxx:143: PropertySet::implSetPropertyValue - cannot set property "FillStyle"
warn:writerfilter:27915:1:/home/stephan/Software/libreoffice-master/core/writerfilter/source/dmapper/OLEHandler.cxx:114: Exception in OLE Handler: position cannot be determined with this method
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/starmath/source/mathmlexport.cxx:1485: Warning: failed to export a node?
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/starmath/source/mathmlexport.cxx:1485: Warning: failed to export a node?
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/starmath/source/mathmlexport.cxx:1485: Warning: failed to export a node?
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/starmath/source/mathmlexport.cxx:1485: Warning: failed to export a node?
warn:legacy.osl:27915:1:/home/stephan/Software/libreoffice-master/core/oox/source/helper/storagebase.cxx:74: StorageBase::StorageBase - missing base input stream
Comment 3 Stephan van den Akker 2012-12-24 21:22:34 UTC
Problem still present in 

- LOdev 4.0.0.0.beta2 (Build-id: 4104d660979c57e1160b5135634f732918460a0) On Windows XP-SP3
- LO-Master Version 4.1.0.0.alpha0+ (Build ID: 07c80d23fadcc2334fe7c6f9ce7b5dafeb88d62) on openSUSE 12.2 (32-bit)
Comment 4 Jorendc 2013-01-24 23:54:23 UTC
Thanks for reporting!

I can reproduce this behavior using Mac OSX 10.8.2 an LibreOffice Version 4.1.0.0.alpha0+ (Build ID: b1d0fd4f969976e2133f8eaa37c1fb8360c20f6)
TinderBox: MacOSX-Intel@1-built_no-moz_on_10.6.8, Branch:master, Time: 2013-01-24_00:28:35

I'll attach an pdf how it looks like when I import it. If I double click (see Description) the formulas are indeed better.

Otherwise the formulas are placed on the second page with an error in the header and footer saying: "Error! Unknown document property name." (see upcoming attachment).
Comment 5 Jorendc 2013-01-24 23:54:53 UTC
Created attachment 73623 [details]
How it looks using Mac OSX 10.8.2 LO 4.1
Comment 6 Stephan van den Akker 2013-05-31 19:47:00 UTC
Problem still present in 

Version: 4.2.0.0.alpha0+
Build ID: c2530b02311c46529eed53ee688bf6c83ce4b86

on Ubuntu 12.04 (32-bit)
Comment 7 Alexandr 2014-07-31 05:52:45 UTC
Reproducible with LibreOffice 4.2.5 and 4.3.0 on Debian. The formulas are much bigger than they are in Jorendc pdf attachment.

> Otherwise the formulas are placed on the second page with an error in the
> header and footer saying: "Error! Unknown document property name." (see 
> upcoming attachment).

Should it be reported as another bug?
Comment 8 Xisco Faulí 2015-08-19 10:04:38 UTC
Problem still present in

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 9 QA Administrators 2016-09-20 10:25:50 UTC Comment hidden (obsolete)
Comment 10 Stephan van den Akker 2016-09-20 13:19:59 UTC
Reproduced in LO:

Version: 5.0.5.2
Build ID: 00m0(Build:2)
Locale: en-GB (en_GB.UTF-8)

on openSuSE 13.1 (64-bit)

Problem resolved in LOdev:

Version: 5.3.0.0.alpha0+
Build ID: 075489b4b810692edc2ba9910eb3ca659a2b6745
CPU Threads: 4; OS Version: Linux 3.12; UI Render: default; 
Locale: en-GB (en_GB.UTF-8); Calc: group

All formulae are imported with the correct vertical position