https://bugs.documentfoundation.org/show_bug.cgi?id=127706

--- Comment #5 from Mike Kaganski <mikekagan...@hotmail.com> ---
Made some test with the steps from comment 0 (in a version without patch from
comment 4). Specifically, I have saved a new copy of the document after each of
the steps starting after 2. For creating lorem ipsum text, I typed "lorem" then
F3, so I had 4 paragraphs in the document (the last empty).

After step 2, the resulting ODF contained all paragraphs having direct
formatting applied at *paragraph* level; the size 18 was defined in styles
under "office:automatic-styles" element, which had style:family="paragraph"; no
styles there having style:family="text".

After step 3, the paragraph with the modification still had size defined at
paragraph level, but the italic formatting was, naturally, defined at character
level (i.e., using a test:span referring to a style which family was "text").

After step 4, the edited paragraph no more had direct formatting at the
paragraph level: instead, all formatting was now using several text:span
elements, which referred to two character autostyles. The portion that was
cleared from direct formatting was outside of the spans, i.e. having the
paragraph formatting.

After step 5, the modified paragraph was also free of direct formatting, and
everything manual was still applied using text spans.

So I believe that the problem here is that when we clear direct formatting in a
span inside a paragraph having direct formatting at paragraph level, its
formatting is modified in such a way that is isn't a paragraph-level formatting
anymore, but a character-level formatting; and *this step is not undone* in
undo, which is the reason of the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to