Applying a paragraph style overwrites direct formatting

Somehow I haven’t noticed this before, so I don’t know if it is normal, but when I apply a paragraph style to a paragraph, it is removing all direct formatting, such as italics, from the paragraph. This should obviously not happen. Is it a bug?

I thought that maybe the paragraph style itself is telling the text to be non-italic, but when I check on the organize tab, there is no mention of Italics or Not Italics. So, I don’t understand why it is doing this. Any way to avoid it? It is really annoying to have to redo all direct formatting within paragraphs every time you apply a paragraph style.

UPDATE:
This behaviour stopped happening, for now at least. But, as I mentioned in the comments, direct formatting is still lost when undoing/redoing the paragraph style change. I upgraded to 6.3 and it is still the same. I wonder if anyone else has this bug. But it is pretty minor as long as it only happens when redoing a style change.

I cannot reproduce your problem with LibO 6.3.4. Which LibO version do you use? Can you share a sample document?

6.2.0.3 I didn’t know there was an update. It has stopped doing it now! WIth a very strange exception, if I apply the style and undo it, and then redo it, the italics disappear! At that point undoing does not restore the italics. Weird. I will update and see if that helps.

Somehow I haven’t noticed this before, so I don’t know if it is normal, but when I apply a paragraph style to a paragraph, it is removing all direct formatting, such as italics, from the paragraph. This should obviously not happen. Is it a bug?

No matter what the result looks like, it seems to me that you have not yet properly understood the paragraph style system.

You can also create different paragraph styles for different font specifications so that you do not need direct formatting.

Just because you can do something, it doesn’t make sense to do it.

What are you talking about? Why do you think I don’t understand the paragraph style system? I understand it very well. We have determined that my problem is a bug.

@lomacarWe have determined that my problem is a bug.” Sorry but none of the answers nor comments have determined it was a bug. You have determined it. @RGB-es asked you to share a sample document, for the community to see what’s the problem and behavior you are encountering, once the community will try your sample, then they can determine if it’s a bug or a normal misbehavior or something else.

  1. Applying a paragraph style will never reset neither direct formatting, nor styles, that are applied to characters. If you select part of a paragraph, and use toolbar button to make it bold, or apply “Emphasis” character style to it, and then apply any paragraph style, then the emphasized parts will stay as they were (bold or italic…).
  2. Applying a paragraph style will always reset all paragraph properties, be it applied directly or by previous style. Every paragraph style defines a whole set of paragraph properties, even if those properties are not defined in the style itself: those that are omitted in the paragraph style, will be taken from its parent style in the inheritance hierarchy. If a property is not defined in any style in the inheritance chain, it will be taken from Writer’s defaults. So you cannot have a style that does not set some of paragraph properties on its application.