Bug 167035 - clipboard Drawing Format has incomplete XML
Summary: clipboard Drawing Format has incomplete XML
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium minor
Assignee: Mike Kaganski
URL:
Whiteboard: target:26.2.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2025-06-15 20:15 UTC by Regina Henschel
Modified: 2025-06-16 11:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2025-06-15 20:15:21 UTC
Draw a shape in Writer and copy the shape to clipboard.

When I look at the clipboard with app "Free Clipboard Viewer" and therein type "Drawing Format", I can see that the content of the clipboard is faulty in case of copying from Writer. The content ends unexpected after 2048 bytes. The content should end with </office:document>. That is the case when you copy something from Calc to the clipboard, for example.

I don't know whether this has impacts for use in LibreOffice itself. 

It was OK in Version: 7.5.7.0.0+ (X86_64) / LibreOffice Community
Build ID: ef57819ea96bb02a8e946c6877a7458b35e83f27
CPU threads: 32; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded

It is broken at least since Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 32; OS: Windows 10.0 Build 26100; UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded
Comment 1 Alan B. 2025-06-15 21:42:22 UTC
Regression introduced by:

https://git.libreoffice.org/core/+/7ab51def766ad6bfdcf5111e7b751bbc2bbf1d73%5E!

commit 7ab51def766ad6bfdcf5111e7b751bbc2bbf1d73	[log]
author	Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>	Fri Jan 27 15:04:33 2023 +0900
committer	Tomaž Vajngerl <quikee@gmail.com>	Wed Feb 01 08:41:21 2023 +0000
tree 16e58aaf7336ca8c56fbd9bdd729ab4a1c379dae
parent a262ee4c4a682f844ef380d5e843be1b3ec78c98 [diff]
sw: implement "Theme" property for the XDrawPage in Writer

Bisected with: bibisect-win64-7.6

Adding Cc: to Tomaž Vajngerl
Comment 3 Commit Notification 2025-06-16 09:18:36 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

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

Related: tdf#167035 Check SvxDrawingLayerExport return value

It will be available in 26.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 4 Commit Notification 2025-06-16 11:37:12 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2a63aa191bdc3fff47908940ec3a5db570c1d7d0

tdf#167035: SwFmDrawPage::get/setPropertyValue for BackgroundFullSize

It will be available in 26.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.