Bug 130612 - Could change format style only once in certain circumstances
Summary: Could change format style only once in certain circumstances
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2020-02-12 09:44 UTC by campo.felice
Modified: 2020-02-19 07:51 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Description you find in comment (10.83 KB, application/vnd.oasis.opendocument.text)
2020-02-14 11:22 UTC, campo.felice
Details
see Comment (11.37 KB, application/vnd.oasis.opendocument.text)
2020-02-14 12:22 UTC, campo.felice
Details

Note You need to log in before you can comment on or make changes to this bug.
Description campo.felice 2020-02-12 09:44:03 UTC
Prerequisite:
Open new Writer Document and paste Text from external source, e.g Wikipedia "Google Docs" first chapter into document. The effect takes place only, if the text contains Links and mixed font style ( e.g. normal and bold font style ).

I did the following ...

After pasting ( format style "Standard", font style "Times New Roman", I changed the font style to "Calibri" from Toolbar.

Then I derived a new format style, let's say "_Text 1" from this chapter.
The new format started with font style "Times New Roman", with is incorrect from my opinion ... no matters at all ...

Now I changed the font style of the new format style "_Text 1" to "Calibri".
The Chapter appears in the new format style, seems everything OK.

When I tryied to change the format style back to "Standard" from sidebar ( double click ), this doesn't work. Should change font style back to "Times New Roman".

The effect doesn't take place, when I only pasted plain text or plain text only with links or plain text only mixed font style. Coding side effect or initialisation ?

regards and thanks for fabulous libreoffice !
Comment 1 Dieter 2020-02-12 16:59:16 UTC
(In reply to campo.felice from comment #0)
> Prerequisite:
> Open new Writer Document and paste Text from external source, e.g Wikipedia
> "Google Docs" first chapter into document. The effect takes place only, if
> the text contains Links and mixed font style ( e.g. normal and bold font
> style ).
> 
> I did the following ...
> 
> After pasting ( format style "Standard", font style "Times New Roman", I
> changed the font style to "Calibri" from Toolbar.
> 
> Then I derived a new format style, let's say "_Text 1" from this chapter.
> The new format started with font style "Times New Roman", with is incorrect
> from my opinion ... no matters at all ...
> 
> Now I changed the font style of the new format style "_Text 1" to "Calibri".
> The Chapter appears in the new format style, seems everything OK.

I'm not sure, if I understand evey step in the righ way. So it would be helpful, if you can attach a document that contains the previous steps.

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.
(Please note that the attachment will be public, remove any sensitive information before attaching it)
Comment 2 campo.felice 2020-02-14 11:22:13 UTC
Created attachment 157855 [details]
Description you find in comment

Description once more ... and mind the prerequisits in my first statement !

Open new document in libreoffice. Paste text from https://de.wikipedia.org/wiki/Google_Docs first chapter, in document.

The format style "Standard" is default "Liberation serif", I had changed this to "Times New Roman", because in libreoffice portable edition "Liberation serif" isn't available on my windows 7 system. But this doesn't matter. The bug takes place, if I do not change "Standard" format style earlier.

OK, let's go on...

Change the format style of the pasted from toolbar to "Calibri".

Then derive from this chapter a new format style "_Text 1". When you edit the new format style "_Text 1" the font is set "Times New Roman", which may be a little bit curious too, but no mistake. Change the font to "Calibri", confirm and leave.

Now change from sidebar (double click) the format style of the chapter back to "Standard". You exspect that libreoffice will change the font back to "Times .. ". But nothing happens. You can only change the font from Toolbar. If you do this, font changes. Now try to change the format style from sidebar back to "_Text 1". You exspect the font will change to "Calibri", but nothing happens.
Unusual and misty behaviour ( see attached document ) !

Please contact me, if you need further information.

best regards, Felix

PS: If you are german, we may communicate in german too !
Comment 3 campo.felice 2020-02-14 12:22:52 UTC
Created attachment 157861 [details]
see Comment

furthermore ...

If I paste another chapter from https://de.wikipedia.org/wiki/Google_Docs without links and mixed font style, change font to "Calibri" and derive new format style "_Text 1a", the new format has font style "Calibri", with differs from paragraph 1 and "_Text 1" in generation. In this case everything wents OK. When I change from sidebar back to format "Standard", the font changes to "Times .." and vice verse.

Seems to be a bug in object inheritance or object constructor initialization, but I doesn't really know.

best regards, Felix
Comment 4 Dieter 2020-02-14 13:39:26 UTC
Felix, I think I can reproduce the problem, but I don't think it is a bug.

If you change font with the list from toolbar, you change font of the characters. That's different from changing font of a paragraph style. The idea is, to change only font characters, if you change it for a part of a paragraph (not easy to understand; I learnt it after years of using LO). So if you change paragraph style (from Default to _Text 1), that doesn't affect the character font.

If you change only font of some characters in a paragraph, it should work as you expect.

So not a bug, but not easy to understand. There are some bugs, that try to improve that situation, see for example bug 128960.

So what do you think?

cc: Design-Team for further input

(And, yes I'm German, but if we use English, more people can participate.)
Comment 5 campo.felice 2020-02-14 15:01:18 UTC
OK Dieter, you are right, by writing in english more people could participate, but on the other hand, I can't explain so precisely.

You are further right, that changing font style from toolbar is different from changing font style in paragraph format. But that's not the problem.

The problem is, that text with links and mixed font style copied into document could not be changed furtherwards in a right manner by toogling paragraph format, when I take certain action before. I have described this twice. In contrast, text without links and mixed font style copied into document behave in a right manner.

I for myself think, this is not a severe bug, but I teached people last week, that formating documents with selfdefined paragraph formats is very elegant and flexible and came to the point, that this not works correctly in libreoffice under certain circumstances. So this was a little bit shaming and therefor I took the ride .... ;-)).

It's your decision now ! May be useful, if you track the problem yourself with given examples. On the other hand, if you change something in C++ implementation concerning multiple inheritance, this could be a nightmare of side effects ,-)).

best regards and have a nice day, Felix

best regards, Felix
Comment 6 Heiko Tietze 2020-02-19 07:51:47 UTC
First of all, it's not a bug => NAB.

I hope the confusion will be solve with this proposal https://design.blog.documentfoundation.org/2019/11/05/proposal-to-conveniently-highlight-and-inspect-styles-in-libreoffice-writer/

The supposed workflow with HTML-formatted clipboard content is to either insert unformatted text per paste special (shift+ctrl+v) or to remove the direct formatting afterwards with format > clear direct formatting (ctrl+m).