Bug 116852 - Fileopen DOC DOCX: Emphasis Styles imported into Default Style
Summary: Fileopen DOC DOCX: Emphasis Styles imported into Default Style
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-06 17:56 UTC by Luke
Modified: 2018-04-14 16:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Simple Docx example (11.55 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-04-06 17:56 UTC, Luke
Details
Simple doc example. (27.00 KB, application/msword)
2018-04-06 18:08 UTC, Luke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke 2018-04-06 17:56:12 UTC
Created attachment 141175 [details]
Simple Docx example

As far as I can tell, when LO imports word document with the Subtle Emphasis style, that style will be treated as default, master style. I noticed this issue when I tried to edit a large document. I created a new document and was easily able to reproduce this bug. 

Steps to reproduce:
1. Open a word doc or docx with Subtle Emphasis style
2. Modify the Subtle Emphasis style with something like adding underline

Expected results
1. Only instances of Subtle Emphasis style change. 

Actual Results
1. All styles inherit the new underline attribute. 

Only changing the master, Default Style, should change all child styles. For some reason, Subtle Emphasis also has this ability.
Comment 1 Luke 2018-04-06 18:08:49 UTC
Created attachment 141177 [details]
Simple doc example.

This example shows how other styles are preserved, while the Emphasis styles are lost.
Comment 2 Laurent Balland 2018-04-14 14:37:53 UTC
I do not understand what you expect. "Subtle Emphasis" is a character style, and no other style inherits from it in attachment 141175 [details], nor in attachment 141177 [details].
Comment 3 Luke 2018-04-14 16:51:16 UTC
OK, I see the problem. The document I was working on was using a character style as a paragraph style. In Word, when you edit a style it will be smart about selecting the correct type. In LO you have to explicitly select the correct type or you can accidentally edit the default style. 

This is basically a dupe of 

https://bz.apache.org/ooo/show_bug.cgi?id=122515

I'll close this as NOT A BUG and open a new enhancement request if I can't find a similar one here.