Bug 160510 - When pasting text styled with character format to a new document that style isn't edit-able
Summary: When pasting text styled with character format to a new document that style i...
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.9.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-03 19:00 UTC by Ulrich Windl
Modified: 2024-04-18 06:05 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Partial screenshot showing context menu (10.37 KB, image/png)
2024-04-03 19:00 UTC, Ulrich Windl
Details
Sample document showing the bug (9.45 KB, application/vnd.oasis.opendocument.text)
2024-04-04 21:38 UTC, Ulrich Windl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Windl 2024-04-03 19:00:04 UTC
Description:
For a test I had copied some text that used a character style, and pasted that text into a new empty document.
When I wanted to show the properties of the assigned character style, I realized that the style is not edit-able.
Clicking around in the document eventually made the style edit-able.


Steps to Reproduce:
1. Have some text with a named character style applied
2. Mark and copy such text
3. Paste text into new empty document
4. Switch to character styles, press right mouse button over the style

Actual Results:
You see only "New" and "Delete", but not "Change"

Expected Results:
You should be able to change the named character style


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.9.2 (x86) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded
Comment 1 Ulrich Windl 2024-04-03 19:00:49 UTC
Created attachment 193466 [details]
Partial screenshot showing context menu
Comment 2 m_a_riosv 2024-04-03 21:04:43 UTC
Works for me with
Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 3 Haris 2024-04-04 06:21:14 UTC
Hello Ulrich Windl,

With the newer versions, you can easily change the character styles of a pasted text. These are the steps I used:

1. Copy text with a character style (the text I copied was bolded, and it was from a website).
2. Paste text into an empty document.
3. Select the text and right-click.
4. Hover over "Character", and a dropdown appears to the right with a check next to the character style (for me, it was "Strong Emphasis").
5. Select "No Character Style" from the dropdown. The character style should be removed from the text.

These are the two builds I tested with:

Stable Build
Version: 24.2.2.2 (AARCH64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Master/Daily Build
Version: 24.8.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: c4023d3ec604abfff38be2053e2989c7ec2ba8c1
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Ulrich Windl 2024-04-04 21:38:46 UTC
Created attachment 193497 [details]
Sample document showing the bug

Maybe this is just an effect of other bugs related to copying text with character formats. I made an experiment:
If the text pasted contains more than the styled part, then the character format can be edited; however if it contains only the styled part, the character style cannot be edited. In this case I saved the document, closed it and re-opened it, and still: the character style cannot be edited.

If you try to edit the style "Taste", it does not offer the corresponding context menu.
Comment 5 Ulrich Windl 2024-04-05 23:35:28 UTC
(In reply to Haris from comment #3)
I think you misunderstood, or I didn't explain well enough:
I don't want to assign a different "named" character style, but instead I want to change the attributes of the currently assigned style ("Taste" in the screenshot, I thought it was obvious).
Comment 6 Haris 2024-04-11 23:51:58 UTC
My apologies, I read your post regarding character styles and misunderstood which character styles you were referring to. The "Edit Style" options shows up for me, and I'm able to successfully edit any character style. Hence, I'm unable to reproduce the bug in the following two builds:

Stable Build
Version: 24.2.2.2 (AARCH64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Master/Daily Build
Version: 24.8.0.0.alpha0+ (AARCH64) / LibreOffice Community
Build ID: c4023d3ec604abfff38be2053e2989c7ec2ba8c1
CPU threads: 10; OS: macOS 14.1.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 7 Robert Großkopf 2024-04-12 18:37:22 UTC
Tested the attached file with 
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Calc: threaded
"Taste" is editable here.

Get the same with LO 7.6.4 and LO 7.5.5 on the same system: OpenSUSE 15.6 Beta 64bit rpm Linux

Might be the behavior has something to do with user profile. So test it in safe mode or with a renamed user profile