Bug 135068 - Writer clipboard omits sm OLE formula objects, so not present on clipboard for paste -- affecting all clipboard formats
Summary: Writer clipboard omits sm OLE formula objects, so not present on clipboard fo...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
: 129010 (view as bug list)
Depends on:
Blocks: Clipboard RTF-Paste
  Show dependency treegraph
 
Reported: 2020-07-23 07:03 UTC by Telesto
Modified: 2024-05-12 03:16 UTC (History)
5 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 Telesto 2020-07-23 07:03:53 UTC
Description:
Special paste rtf: Formula not pasted

Steps to Reproduce:
1. Open attachment 163282 [details]
2. CTRL+A
3. CTRL+C
4. CTRL+SHIFT+V
5. RTF paste

Actual Results:
Empty row

Expected Results:
Formula


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
7.1

an in
Version: 4.3.7.2
Build ID: 8a35821d8636a03b8bf4e15b48f59794652c68ba
Comment 1 Telesto 2020-07-23 08:09:29 UTC
Also in
3.3.0
Comment 2 V Stuart Foote 2020-07-23 14:05:05 UTC
The attachment ODT embeds only an OLE StarMath formula. On selection -> copy -> paste sepcial clipboard types are:

Writer object, GDI or BMP

Where is RTF involved? 

Version: 7.1.0.0.alpha0+ (x64)
Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 Telesto 2020-07-23 15:08:38 UTC
(In reply to V Stuart Foote from comment #2)
> The attachment ODT embeds only an OLE StarMath formula. On selection -> copy
> -> paste sepcial clipboard types are:
> 
> Writer object, GDI or BMP
> 
> Where is RTF involved? 
> 
> Version: 7.1.0.0.alpha0+ (x64)
> Build ID: b1c83b68bfbf3477fa6a8f4c79c53f6f9ab31f8e
> CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL:
> win
> Locale: en-US (en_US); UI: en-US
> Calc: threaded

Open the file + Press CTRL+A (not select the formula and copy; that is a different thing :-)
Comment 4 V Stuart Foote 2020-07-23 15:32:19 UTC
OK, so you want the full document. Yes the copy will place two RTF streams onto the clipboard:

49273 - Rich Text Format

49623 - Richtext Format

And neither contains the sm formula in a recognizable form--just a DDE bookmark.

But then the same is true of the text, unicode text, and HTML clipboard streams.

The filter simply does not pick up the OLE sm formula for any clipboard stream. Not sure it should and this is NAB?
Comment 5 Xisco Faulí 2020-07-23 16:23:22 UTC
Reproduced in

Version: 7.1.0.0.alpha0+
Build ID: d8270636a57e7dc68ede51308c380e2098f765d7
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 TomasW 2020-07-24 13:43:43 UTC
The primary bug is that Libre Writer does not put RTF math on clipboard.
Consequently no software (also Libre Writer itself) can paste RTF math from Libre Writer. The reported issue is a side effect.

The primary bug report is here: 
https://bugs.documentfoundation.org/show_bug.cgi?id=129010
Comment 7 Xisco Faulí 2020-07-24 13:46:27 UTC
*** Bug 129010 has been marked as a duplicate of this bug. ***
Comment 8 TomasW 2020-07-24 14:20:27 UTC
(In reply to Xisco Faulí from comment #7)
> *** Bug 129010 has been marked as a duplicate of this bug. ***

More precise would be to mark bug 135068 as duplicate (side effect), 
because pasting RTF math actually works in Libre Writer 
IF the clipboard contains RTF math (from other software than Libre Writer).

The primary bug 129010 (prevents all softwares which want to paste math) 
would be still open then.
Comment 9 TomasW 2020-07-24 14:37:37 UTC
And the issue is not about OLE objects, but about RTF math: 
This is the newest and preferred format to exchange 
Rich Text Format (RTF) with embedded formulas.
Comment 10 V Stuart Foote 2020-07-24 15:05:47 UTC
(In reply to TomasW from comment #9)
> And the issue is not about OLE objects, but about RTF math: 
> This is the newest and preferred format to exchange 
> Rich Text Format (RTF) with embedded formulas.

No. This issue here and on bug 129010 is that the Writer clipboard filter does not include math formula (all formulas are on page via OLE) in *any* clipboard format other than LibreOffice OTF document.

Clipboard format for RTF is not supported, nor is clipboard format for HTML, nor is clipboard for text.

The Writer filters for each needs dev work.
Comment 11 V Stuart Foote 2020-07-24 16:00:48 UTC
*** Bug 129010 has been marked as a duplicate of this bug. ***
Comment 12 LeroyG 2022-05-12 12:53:13 UTC
Select some text and a formula on version 7.1.8.1, copy, and paste on version 7.3.2.2 (or viceversa).
Only text is pasted.

Select only the formula, copy, and paste in the other version document: it will paste without problem.

Version: 7.1.8.1 (x86) / LibreOffice Community
Build ID: e1f30c802c3269a1d052614453f260e49458c82c
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: en-US
Calc: threaded

Version: 7.3.2.2 (x86) / LibreOffice Community
Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: es-MX (es_MX); UI: es-ES
Calc: threaded
Comment 13 QA Administrators 2024-05-12 03:16:12 UTC
Dear Telesto,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug