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.
https://gerrit.libreoffice.org/c/core/+/172688
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.
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.