Bug 108749 - Styles fail to import correctly from Word (and are utterly broken) (and caused a 1x crash)
Summary: Styles fail to import correctly from Word (and are utterly broken) (and cause...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.3.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-24 22:54 UTC by Kevin
Modified: 2022-07-25 07:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
created in Word 2010 - user styles don't work in Writer (2.10 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-06-24 22:54 UTC, Kevin
Details
dump.ini from crash described in Comment 1 (207 bytes, text/plain)
2017-06-24 22:56 UTC, Kevin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin 2017-06-24 22:54:09 UTC
Description:
Styles fail to import correctly from Word (and are utterly broken)

Steps to Reproduce:
1. load attached .docx file into Microsoft Word
Note that there are two user-created styles: 24-pt-y-nada-mas and 9-pt-y-nada-mas. The whole point of styles, which was apparently not understood when you tried to implement them, is to give the user the ability to mass-change some attributes while not changing others. To see this at work in Word:

2. select all the text and apply each of the styles
observe: 24-pt changes all characters to 24-pt and leaves their other attributes alone. 9-pt changes all characters to 9-pt and leaves their other attributes alone. 
3. try this in Libre Writer
results: the two styles are shown in styles and formatting but they do nothing. So that's the nominal topic of this report - Writer can't deal with Word styles, but more importantly, you can't create such a style from scratch (or least I was unable to do so in Calc - this is the first time I've tried to use Writer)

Actual Results:  
import of styles fails

Expected Results:
should work - and styles should behave like styles - why even use the name otherwise?


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36
Comment 1 Kevin 2017-06-24 22:54:55 UTC
Created attachment 134256 [details]
created in Word 2010 - user styles don't work in Writer
Comment 2 Kevin 2017-06-24 22:55:57 UTC
Note, the first time I tried to open this in Writer, both Writer and Calc crashed but I couldn't reproduce that. It did however take an inordinately long time to load such a small document.
Comment 3 Kevin 2017-06-24 22:56:57 UTC
Created attachment 134257 [details]
dump.ini from crash described in Comment 1
Comment 4 Xisco Faulí 2017-06-25 10:38:16 UTC
LibreOffice crashes at import time if it's launched in safe mode

Version: 6.0.0.0.alpha0+
Build ID: 08f6f9dded1b142b858c455da03319abac691655
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 5 QA Administrators 2018-06-26 02:45:47 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2020-06-26 03:41:15 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2022-06-27 03:28:46 UTC Comment hidden (obsolete)
Comment 8 Faisal 2022-07-25 07:42:53 UTC
Does not crash on open and cannot repro issue with style with Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_US); UI: en-GB
Calc: CL

My repro steps:
1. Open attachment 134256 [details]
2. Select all text (ctrl + A)
3. Apply 24-pt-y-nada-mas style from formatting toolbar.

Results:
Font size of all text becomes 24pt with other attributes (such as bold, underline, text color) unchanged, except the text "7-pt" and "8-pt", both of which has direct formatting applied. This, to my knowledge, is working as intended: direct formatting is supposed to override style attributes.

No crash as a result of opening the file.

Marking this as WORKSFORME. Please reopen if you can reproduce the issue with new versions of LO.