Issue 98753 - Copy-Paste of objects (Math, Chart) from Writer to Calc or Draw results in unusable size
Summary: Copy-Paste of objects (Math, Chart) from Writer to Calc or Draw results in un...
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m39
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: 3.4.0
Assignee: michael.ruess
QA Contact: issues@framework
URL:
Keywords: regression
: 102455 116923 (view as issue list)
Depends on:
Blocks:
 
Reported: 2009-02-02 21:39 UTC by Regina Henschel
Modified: 2017-05-20 10:31 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Regina Henschel 2009-02-02 21:39:56 UTC
I use OOoDEVm41 on WinXP.

1. Take a new Writer and a new Calc document.
2. Write a Math object in Writer.
3. Mark the Math object (green handles) and copy it.
4. Goto the Calc document and paste it.
You get an huge object.

Look at the drop down list of the insert icon or at Edit > Paste Special in
Calc. You see the types "GDI metafile" and "OOo-dev 3.0 Text Document". The
latter is wrong. It should be a "Star Object Descriptor (XML)".

Copy from Writer and paste into Calc is OK in OOo3.0.1.

If you copy the Math object from an OOo3.0.1-Writer to an OOoDEVm41-Calc, the
type "Star Embed Source (XML)" is offered and that gives the desired Math OLE
object.

If you copy the Math object from an OOoDEVm41-Writer to an OOo3.0.1-Calc, the
type "Star Embed Source (XML)" is offered too, but inserting it gives the error
"The content of the clipboard could not be pasted."
Comment 1 stefan.baltzer 2010-11-05 16:04:00 UTC
Confirming (looked at DEV300_m90). Set keyword "regression" (was OK in OOo 3.0.1).
 - Chart objects are also affected
 - Paste into Draw document has same problem.
-> Adjusted summary, including the word "unusable" :-)
Interesting detail: The size of the inserted object depends on the Zoom factor
in the Writer source document: Smaller Writer zoom factor results in larger
inserted objects. Reassigned to AW.

Comment 2 stefan.baltzer 2010-11-05 16:06:27 UTC
*** Issue 102455 has been marked as a duplicate of this issue. ***
Comment 3 Armin Le Grand 2010-11-05 16:42:31 UTC
AW->TL: No changes from my side for a while. Wasn't there a change in the
clipboard format taking place to now use XML file format? Maybe this has to do
with it.
AW->SBA: Since when is it not working anymore, any hints...?
Comment 4 stefan.baltzer 2010-11-05 17:49:49 UTC
SBA-AW: Regina wrote "Copy from Writer and paste into Calc is OK in OOo3.0.1." -
I had a look on Solaris-Sparc:
OOo 3.1 (OOO310_m11) -> OK
OOo 3.2 (OOO320_m12) -> broken
Change OS to "all"
Comment 5 michael.ruess 2011-02-11 13:54:32 UTC
*** Issue 116923 has been marked as a duplicate of this issue. ***
Comment 6 thomas.lange 2011-03-22 13:31:58 UTC
TL->AW: About the clipboard format change: that CWS (tl77) is on hold since currently there is no one to work on the resulting convwatch issues.
Comment 7 Armin Le Grand 2011-03-23 11:35:48 UTC
AW: Tried to find out who is filling in the needed TransferableDataHelper in StarMath (where the size is defined). Pasting to SD shows that indeed in View::InsertData the given TransferableDataHelper has a size much too big, thus the source is Starmath preparation of TransferableDataHelper when Ctrl-C is pressed. Trying to find out where Starmath is doing this...
Comment 8 Armin Le Grand 2011-03-23 11:56:19 UTC
AW: No place with TransferableDataHelper in Starmath is used on Ctrl-C, seems as if SW is used. Found SwClipboardChangeListener::changedContents to be hit.

AW->OD: Could not find the place in SW where the data for transfer is prepared. Definitely there is a wrong size used there. OS hints that You may be better knowing thi. Adding OS to CC, too.
Comment 9 Oliver-Rainer Wittmann 2011-03-24 09:00:39 UTC
first investigation reveals that the current visible area of the text document is provided as the size of the copied embedded object.
further investigations needed
Comment 10 Oliver-Rainer Wittmann 2011-03-25 11:21:23 UTC
fixed in cws os151 - changed file:
/sw/source/ui/dochdl/swdtflvr.cxx,
change set http://hg.services.openoffice.org/cws/os151/rev/f4d674e63830

od->cd: Please review the code for this fix, Thx.
Comment 11 carsten.driesner 2011-03-25 12:57:16 UTC
cd: Fix reviewed and approved.
Comment 12 Oliver-Rainer Wittmann 2011-03-28 12:13:37 UTC
od->mru: Checked in internal installation set of cws os151 - please verify.
Comment 13 michael.ruess 2011-03-29 13:30:46 UTC
Verified in CWS os151.