Created attachment 166645 [details] Cannot apply style to body text I created a style for body text with crimson pro font but when I tried to apply it to first paragraph of the file it fails. See attached file.
Version: 7.0.2.2 Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994 CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: kf5 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded Operating System: Manjaro Linux KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 Kernel Version: 5.4.72-1-MANJARO OS Type: 64-bit
The custom body text style is called myBody.
I have not such font, but looks there is direct format applied, which has precedence, cleaning it with [Ctrl+M] I think shows the style fine. You can see it with Style inspector on the sidebar. For me not a bug. Please if you are not agreed reopen it.
(In reply to m.a.riosv from comment #3) > I have not such font, but looks there is direct format applied, which has > precedence, cleaning it with [Ctrl+M] I think shows the style fine. > > You can see it with Style inspector on the sidebar. > > For me not a bug. Please if you are not agreed reopen it. But even if I select the whole paragraph then double on "myBody" style in the style sidebar, that direct formatting is not replaced by "myBody" style. Or is direct formatting always has priority over the applied style even if the style is recently applied ? Shouldn't double clicking on any style remove the current applied formatting and force the formatting of the selected style ?
I think yes direct formatting has always priority, and it needs to be remove.
(In reply to m.a.riosv from comment #5) > I think yes direct formatting has always priority, and it needs to be remove. Closing as RESOLVED NOTABUG
Why not a bug ? it's annoying bug and direct formatting should not persists when a style is applied.
There is a simple way to do it. It was explained in comment#4. To have a precedence it's unavoidable. And every one wants the program working in the way they like, that's no possible. So sure it is not a bug.
For someone who works a lot with styles in Writer, this is the most annoying bug in Writer, much worse than crash. Because how do I know that I applied direct formatting to any part of text ? and what is its range of application inside text ? there is no GUI thing that indicates it, and the worst is that Writer indicates in style combobox that the style is applied while it's the direct formatting that is applied. Sorry, I'm long term Writer user and I love it, but I'm not convinced that recalling some weird shortcut to remove direct formatting before applying the custom style is the solution.
For medmedin2014: In 7.6 you have 2 options to see direct formatting: 1. Open Sidebar - Styles and check down there "Spotlight". 2. Go to Format - Spotlight Character Direct Formatting. This way you can see what style is applied and also if there is any direct formatting. Version: 7.6.2.1 (X86_64) / LibreOffice Community Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333 CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
(In reply to BogdanB from comment #10) > For medmedin2014: > In 7.6 you have 2 options to see direct formatting: > 1. Open Sidebar - Styles and check down there "Spotlight". > 2. Go to Format - Spotlight Character Direct Formatting. > > This way you can see what style is applied and also if there is any direct > formatting. > > Version: 7.6.2.1 (X86_64) / LibreOffice Community > Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333 > CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: gtk3 > Locale: ro-RO (ro_RO.UTF-8); UI: en-US > Calc: threaded I swear this is the most frustrating bug in LO, logically speaking the most recent applied style should replace any previous changes including direct formatting, why is LO making it difficult for us ?
No, could be frustrating for you, maybe because, you want your way for everyone. Clean the direct format with [Crtl+M] and it should work as you like. And no, it is not a bug.
(In reply to m.a.riosv from comment #12) > Clean the direct format with [Crtl+M] and it should work as you like. Just to be sure why such broken behavior is treated as normal, why doesn't applying a new style to a paragraph erase the previous direct modifications ?
We can debate here for hours. Everybody is working different. Imagine another case: I have a contract with all paragraph with a paragraph style, but I want to bold some elements of the contract. Now I changed my mind, and I want a total different style. With your proposal, I lose everything. I have to take every word from a previous version of the document, in order to bold, italic them. There are different method of working. This is how LibreOffice is working.
(In reply to BogdanB from comment #14) > Imagine another case: I have a contract with all paragraph with a paragraph > style, but I want to bold some elements of the contract. Now I changed my > mind, and I want a total different style. With your proposal, I lose > everything. I have to take every word from a previous version of the > document, in order to bold, italic them. > Prioritizing latest direct formattings should be done only when editing already existing styles, and not when the user applies a new style on top of old direct formattings.