Bug 163076 - Local formatting in Impress lost upon pasting plaintext from a text editor
Summary: Local formatting in Impress lost upon pasting plaintext from a text editor
Status: RESOLVED DUPLICATE of bug 79928
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.7.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-21 08:50 UTC by john
Modified: 2024-09-21 14:39 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
shows the unexpected change of formatting after pasting plaintext (29.81 KB, image/png)
2024-09-21 08:52 UTC, john
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2024-09-21 08:50:03 UTC
Description:
When pasting text from a text editor into a text box in Impress, local formatting gets incorrectly propagated. 

Steps to Reproduce:
1. Create a new Impress document
2. Remove the default text boxes. 
3. Create a new blank textbox using F2 and dragging a box.
4. Type ctrl-B (bold) then "Hello", then ctrl-B (un-bold) and "Here is some text. "
5. Go to your text editor and type "Something from my text editor". Copy the text and return to LibreOffice. Double-click the text box, place the cursor at the end of the text, and press ctrl-V (paste).


Actual Results:
Upon pasting, the entire text box including pasted text becomes bold. It appears that some logic is being applied to pick up the formatting of the first character in the text box, and applying it to the entire thing, instead of picking up the formatting of the last character (or the current settings where the cursor is, more precisely) and applying it to just the pasted text.

Expected Results:
Clearly the "Here is some text. " as well as the "Something from my text editor" should both be un-bold.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.7-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 1 john 2024-09-21 08:52:23 UTC
Created attachment 196582 [details]
shows the unexpected change of formatting after pasting plaintext
Comment 2 m_a_riosv 2024-09-21 14:39:11 UTC
Pasting with [Ctrl+V] it is not past as plaintext, to do so use Right-click>Unformatted text.

Bolding the text with normal paste looks like a duplicate of tdf#79928

*** This bug has been marked as a duplicate of bug 79928 ***