Bug 162715 - Pasting a text copied in another Writer session changes the theme
Summary: Pasting a text copied in another Writer session changes the theme
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:25.2.0 target:24.8.2
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2024-08-30 18:06 UTC by Mike Kaganski
Modified: 2024-09-02 09:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A document with a custom theme (2.04 KB, application/vnd.oasis.opendocument.text)
2024-08-30 18:06 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2024-08-30 18:06:19 UTC
Created attachment 196118 [details]
A document with a custom theme

Open the attached document. Check Format->Theme; see that "colors_foo" theme is selected, and its first color is dark green. Close the dialog ("Cancel").

Select all (Ctrl+A), and copy to clipboard (Ctrl+C). Paste (Ctrl+V) - it doesn't matter if you overwrite, or append. Now check themes again; see that the theme is unchanged ("colors_foo" is selected; its first color is dark green).

Close the document, but not Writer. Reopen the document; check the theme; now paste (the same data that was copied when the document was opened last time). Check the theme; it is, again, expectedly unchanged.

Now close LibreOffice (including quicklaunch, if enabled), and reopen the document. Check the theme, and then paste (the same data copied in the previous application session). Check the theme.

=> now the theme changes its name to 'LibreOffice', and its first color is black. It must not change.
Comment 1 Mike Kaganski 2024-08-30 18:45:29 UTC
https://gerrit.libreoffice.org/c/core/+/172688
Comment 2 Commit Notification 2024-08-31 10:05:50 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3cf243ac31098de2d275c722a474a36b330df6e1

tdf#162715: do not import theme when pasting from clipboard

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2024-09-02 09:14:54 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/e2bdae48f66d76d08552b6658d940f94f581a475

tdf#162715: do not import theme when pasting from clipboard

It will be available in 24.8.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.