Issue 102455

Summary: copy formula from Writer to Calc results in incorrect size
Product: General Reporter: Regina Henschel <rb.henschel>
Component: codeAssignee: Oliver-Rainer Wittmann <orw>
Status: CLOSED DUPLICATE QA Contact: issues@framework <issues>
Severity: Trivial    
Priority: P3 CC: issues, rainerbielefeld_ooo_qa, stefan.baltzer
Version: DEV300m49Keywords: oooqa, regression
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
sample documents none

Description Regina Henschel 2009-06-02 21:05:01 UTC
Open a new Writer document and a new Calc document.
Write a formula in the Writer document using the formula editor.
Copy the formula to clipboard.
Goto the spreadsheet and paste it via Button. You have the choice "GDI Meta
file" and "OOo-dev 3.2 TextDocument". Choose "OOo-dev 3.2 TextDocument".

The formula is inserted, but has a wrong size. Going to edit mode of the formula
does not solve the problem. You have to use "Original size" from the context menu.

It works in OOo3.1. Addition: in OOo3.1 the type text is "Star Object Descriptor
(XML)".
Comment 1 Rainer Bielefeld 2009-06-04 05:41:57 UTC
I checked with "Ooo Dev 3.2.0 multilingual version English UI WIN XP: [DEV300m49
(Build 9403)]" and can confirm all details of reported effect. 

Steps to reproduce (as I did with documents in my test kit):

1. open 2 now documents as reported
   WRITER - zoom "Optimal", spreadsheet zoom "200%
2. Insert formula "A=B"C" into WRITER document (size shouldbe app. 20x5mm)
3. click formula to select it, press <cntrl>+<c>
4. change to spreadsheet (sheet 1)
5. select 'Insert as "OOo-dev 3.2 TextDocument"' using 'Paste button' 
  (same result using 'Edit -> Paste Special' menu
  expected: formula should be inserted with original size
  actual: app. 180x113mm

And now something curious:
11. go back to writer document
12. change zoom to 600%
13. redo from step 2, but insert into sheet 2
    expected: size as in sheet 1 (app. 180x113mm)
    actual: 43x25mm

I can not see any reason why size of pasted formula should depend on zoom in
source document.
Comment 2 Rainer Bielefeld 2009-06-04 05:44:53 UTC
Created attachment 62761 [details]
sample documents
Comment 3 michael.ruess 2009-08-20 10:42:46 UTC
Reassigned to mru.
Comment 4 michael.ruess 2009-08-20 10:55:21 UTC
MRU->OD: please have a look. When copying a formula object and pasting into Calc
or Draw as OLE object, its size is enormous. Curiously the "original size" is
stored correctly at the object.
Comment 5 michael.ruess 2009-08-20 10:57:34 UTC
Forgot to reassign...
Comment 6 stefan.baltzer 2010-11-05 16:06:28 UTC
I had a look in DEV300_m90: Also affected: Chart objects. Also affected: Paste
into a new draw file. The "initial size" of the pasted object is IMHO unusable.
I spoke to NN and he said that this is probably something from the graphic layer
area, so maybe AW is the winner. 
However, this one is a duplicate, regina posted this problem before (issue 98753).




*** This issue has been marked as a duplicate of 98753 ***
Comment 7 stefan.baltzer 2010-11-05 16:17:56 UTC
Closing duplicate issue.