Bug 131409 - Paste of part of paragraph in paragraph with another style is broken: formatting of part is not changed
Summary: Paste of part of paragraph in paragraph with another style is broken: formatt...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks:
 
Reported: 2020-03-18 20:44 UTC by Cor Nouws
Modified: 2020-03-21 19:56 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
test document with changed style Heading 1 (11.00 KB, application/vnd.oasis.opendocument.text)
2020-03-18 20:44 UTC, Cor Nouws
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cor Nouws 2020-03-18 20:44:20 UTC
Created attachment 158789 [details]
test document with changed style Heading 1

Text file
1. Paragraph with Heading 1, with multiple words
2. Change Color and font of the style of Heading 1
3. Paragraph with style Text Body, with some text
4. Copy 3 or more words from paragraph with Heading 1
5. Place cursor after first word in paragraph wtih style Text Body
6. Paste
    > Part of the pasted text retains changed formatting

This is wrong: all formatting (which is not direct formatting) must change to the style of the paragraph in which is pasted.

Version: 6.1.4.2
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 1 Cor Nouws 2020-03-18 20:45:50 UTC
Sorry!

 SEEN in version:

Version: 6.4.0.3
Build ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk3; 
Locale: nl-NL (en_US.UTF-8); UI-Language: en-US
Calc: threaded


  OK in e.g. 

Version: 6.1.4.2
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 8; OS: Linux 5.3; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded
Comment 2 Durgapriyanka 2020-03-18 21:56:21 UTC
Thank you for reporting the bug. I can confirm the bug present in

Version: 6.4.0.0.alpha1+ (x86)
Build ID: ec7374ff84c71edfbb30d6e4dc5b486b6df7107f
CPU threads: 2; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-11-10_21:37:30
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
	

and in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 3 Timur 2020-03-20 09:53:04 UTC
I don't see a bug here.
"template / document for" is directly formatted and if pasted  it retains formatting.
Just change Heading 1 formatting and you'll see.
Comment 4 Cor Nouws 2020-03-21 19:28:19 UTC
(In reply to Timur from comment #3)
> I don't see a bug here.
> "template / document for" is directly formatted and if pasted  it retains
> formatting.
Oh.. I did change the attributes in the Style dialog.. Not in the paragraph!?

> Just change Heading 1 formatting and you'll see.
Comment 5 Cor Nouws 2020-03-21 19:56:23 UTC
(In reply to Cor Nouws from comment #4)
> (In reply to Timur from comment #3)
> > I don't see a bug here.
> > "template / document for" is directly formatted and if pasted  it retains
> > formatting.
> Oh.. I did change the attributes in the Style dialog.. Not in the paragraph!?
Well. Looked at the document again, and indeed. Part has direct formatting.
Really odd, I did not do that :) ..
Will keep an eye on it, obviously,

Thanks for the help, Durgapriyanka, Timur!