Issue 102455 - copy formula from Writer to Calc results in incorrect size
Summary: copy formula from Writer to Calc results in incorrect size
Status: CLOSED DUPLICATE of issue 98753
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: DEV300m49
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: Oliver-Rainer Wittmann
QA Contact: issues@framework
URL:
Keywords: oooqa, regression
Depends on:
Blocks:
 
Reported: 2009-06-02 21:05 UTC by Regina Henschel
Modified: 2013-08-07 15:31 UTC (History)
3 users (show)

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


Attachments
sample documents (17.46 KB, application/x-compressed)
2009-06-04 05:44 UTC, Rainer Bielefeld
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
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.