Bug 138639 - Wrong style update
Summary: Wrong style update
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-03 12:31 UTC by akazu
Modified: 2021-01-19 09:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
The documment with the error, use it as private. The information is not public. (472.41 KB, application/vnd.oasis.opendocument.text)
2020-12-03 12:39 UTC, akazu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akazu 2020-12-03 12:31:44 UTC
Description:
There are updated styles wrong way if I am using copy - pasted text from .doc file opened in Libre Office which is then edited by styles. There was unupdated right indent for all styles except the last line.

Steps to Reproduce:
1. Paste some text from .doc document to .odt.
2. Create the new style derived from an another-one, in my case bulleted list.
3. Then create an another style that should be there - in my case alignment right with some indent from right side.
4. Paste there some another text from .doc.
5. Use the second style.
6. Continue to the end of the document.
7. If you will be lucky all text under every bullet list line will be without indent and the last line will be with the indent set correctly.

Actual Results:
All lines where was the style set were wrong indent, except the last-one where was the indent correct. Other parts of the style as alignment, text color, type of text and possibly an inherited stuff was correct.

Expected Results:
All lines should be formated with the same indent.


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
The software formated indent improperly.
Comment 1 akazu 2020-12-03 12:39:31 UTC
Created attachment 167790 [details]
The documment with the error, use it as private. The information is not public.

The documment is in Czech language. The issue is on the last page. The issued style is named "TEO1 - Projekt - Bodování". The lines edited with the style are all alligned on the right on the last page. There is visible obvious difference on the last line.

The document is not for public purpose.
Comment 2 Dieter 2020-12-18 07:09:57 UTC
Akazu, thank you for the bug report and the steps to reproduce. Unfortunately they are to clear to me. I can't find a paragraph style "Bulleted list" and also not a style "Alignment right". I assume, both are parts of a certain style.

So we need more specific steps like:
1. Open attached doc-file in LO and copy text
2. Open a new document and paste text. Paragraph style is ...
3. Create a new paragraph style inherited from paragraph style ... Tab "Outline and Numbering": Add numbering style ...

=> NEEDINFO
Comment 3 akazu 2020-12-20 03:04:01 UTC
I am sorry for the missunderstanding. The style is used on the last page and is named "TEO1 - Projekt - Odrážky abecední" and the right aligned style is named "TEO1 - Projekt - Bodování". Both styles are inherited from "TEO1 - Projekt - Tělo textu". So the steps are folowing:

1. Open the attached documment.
2. Go to the last page.
3. There was already pasted a text from different documment that I have no permision to share now.
4. There was changed formating of the paragraphs by two ways from the source documment.
4.1. One is "TEO1 - Projekt - Odrážky abecední" which is used to create points a) through e). 
4.2. The second one is "TEO1 - Projekt - Bodování" which is used for the right aligned text eg. following: "0 až 4 bodů".
5. Click to the right aligned text (eg the words noted above), right click on format "TEO1 - Projekt - Bodování" and then click edit. On the second bottom tab named "Odsazení a rozestupy" in my LO version, in your probably indents and spacing, you will see that there is set 1,8 cm as indent behind text. 
6) Check all lines with the formating with the right align named "TEO1 - Projekt - Bodování" on the page.
7) You can see that there is the indent only for the last one.
8) Now you can click for one of the right formated text with right button and try to erase direct formating.
9) Then aplicate an another style.
10) Then move back to the style "TEO1 - Projekt - Bodování".
11) The text formating remains unchanged, so without indent behind text except the last line in the document.
Comment 4 akazu 2020-12-20 03:16:09 UTC
Just one note if it is unclear. The pasted text was created probably in some version of Microsoft Office, probably in old .doc format.
Comment 5 QA Administrators 2020-12-20 03:47:10 UTC Comment hidden (obsolete)
Comment 6 Dieter 2021-01-17 07:56:07 UTC
(In reply to akazu from comment #3)

I confirm all steps from comment 3. I think, I've found the reason why this is happening:

1. Put cursor in a paragraph with "TEO1 - Projekt - Bodování".
2. You can see in toolbar, that button "Toggle Numbered List" is active
3. Click on that button

Result: Intend after text changes

Additional information: Number from Numbering style is now displayed. If this is not intended, please press "Toggle Numbered List" again.

So in sum: "Clear direct formatting" has no effect on a list, that has been added with direct formating. I've reported that in bug 139693.

So I would close this bug as RESOLVED NOTABUG. Do you agree?
=> NEEDINFO
Comment 7 akazu 2021-01-19 09:24:35 UTC
Dieter, thanks for the investigation, it looks that you have the point. I've checked the document, fixed and changed formation for a few times and it looks that you are right so the bug can be closed according to your suggestion.

Thank you for your work!