Created attachment 58634 [details] File with distorted styles I assign a style to a paragraph, mark the paragraph and apply "Ctrl + M" (thus clearing direct formatting) and save the file. After opening the file all styles have been substituted by the "Default" style. See the attached files.
Created attachment 58635 [details] File before distorting styles
I can't reproduce the problem, but the report is much to rare. @jmkopy@gmx.net Please contribute a precise step by step instruction containing every mouse click and every key press.
ONLY with this file I can reproduce on LibreOffice 3.5.1 and OOo-dev 3.4. Two confident folks from OOo.org forum have tried with equals results. Only with this file have found the problem.
Does the bug occur when your document has only one paragraph?
I have to describe exactly how it happens: I mark the whole document: Ctrl + A (one paragraph marked) Ctrl + A (all paragraphs marked, or the whole document for that matter) Ctrl + M (clearing direct formatting) Saving the document Closing the document Opening the document --> All assigned styles are removed. When I do mark only one paragraph and apply the steps mentioned above then the same happens only for the tackled paragraph. See the new attached files.
Created attachment 59015 [details] Another file before styles are distorted
Created attachment 59016 [details] Another file after styles are distorted
Created attachment 59017 [details] Another file after style is distorted for one paragraph
(In reply to comment #4) > Does the bug occur when your document has only one paragraph? I tried it, the bug does occur once. When I assign a style again and repeat the steps mentioned above the styles are retained. The same is true for many paragraphs document. Actually it is true also for the attached documents above. Well, it looks that after a second "round" of assigning the styles the problem is almost gone. Having a long document it is a "nice" job to reassign the styles again. Having many documents it is even "nicer" so. I tried it again, with one of the above files. And some styles are persistently being removed and some remain. Hmmm? Even after reassigning the the styles many times.
I saved 3-th attachment as fodt and viewed as text. And found there this line: <style:style style:name="_5f_Heading_5f_00" style:display-name="_Heading_00" It means that style's internal name is different from name we see. I can not produce such style by my own. IMHO LibreOffice can not deal with such styles correctly. How to produced this document? May be from template that already has such corruption. Or by opening file, created by another program? Or copy-pasting.
Dear Bug Submitter, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/FDO/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team
reproduced in 4.0.3 on Fedora (RFR) 64 bit using 3-th attachment (Another_file_before_distorting_styles.odt) and steps from comment 5
Could it be this bug is the same as https://bugs.freedesktop.org/show_bug.cgi?id=73411 ? Haven't found this bug before, but the loosing of styles has something to do with numbering and bullet, so I searched for bullets and found nothing.
IMHO bug is the same I just tried my idea from comment 10 on attachment from Bug 73411. I saved it as fodt format and manually removed style:display-name . But it not helps. Bug still reproducible. Therefore style:display-name is not a source of problem.
See also bug #61956, which might be a duplicate of this one.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.