Issue 18465

Summary: Text pasted from clipboard has wrong font and size
Product: Calc Reporter: Joe Smith <jes>
Component: uiAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, jbf.faure
Version: OOo 1.1 RC3   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Joe Smith 2003-08-20 23:41:53 UTC
1. Enter some text in a cell
2. Select the cell
3. Select some characters by dragging the mouse in the edit bar
4. Cut the selected characters (Ctrl-X)
5. Select a different empty cell
6. Click in the entry area
7. Paste into the entry area (Ctrl-V)
8. New text has wacky font: Andale Sans UI;Arial Unicode MS;Lucida Sans
Unicode;Tahoma;Bitstream Vera Sans;Interface User;WarpSans;Geneva;Tahoma;MS Sans
Serif;Helv;Dialog;Albany;Lucida;Helvetica;Charcoal;Chicago;Arial;Helmet;Interface
System;Sans Serif and size: 4.8 pt

Only happens when clipboard source is OOo calc entry area (C&P of whole cells is
ok).
Only happens when text is CUT (not COPYed).
Only happens when CUT is activated from keyboard, not Edit/Cut (Edit/Paste shows
 bug also).
Only happens when destination (edit area) is empty.
Comment 1 frank 2003-08-21 19:25:50 UTC
Hi Niklas,

one for you ?

Frank
Comment 2 frank 2003-08-22 09:18:36 UTC
Hi Malte,

today I think this is your construction site.

Frank
Comment 3 frank 2003-08-22 09:19:03 UTC
Set the flags.
Comment 4 malte_timmermann 2003-08-22 11:45:48 UTC
MT->NN: Here is what's happening:

EditEngine in formular bar uses other reference device or map mode 
than EditEngine in cells.
This results in different font height when pasting, and also an other 
font is used in the formular bar.

When I do a copy, it's done via the EditEngine in the cell(!), not in 
the formular bar. (Via slot, KEY_COPY doesn't make it to the 
EditEngine).
When I do a cut, it's done via the cell, and after that, via the 
formular bar (KEY_CUT not intercepted).

This is the reason for the different behaviour.

Both is wrong!
When you put some attribs in a cell, and copy text from the formular 
bar, I don't expect to copy attribs.

So what you should do: Intercept cut/copy in formular bar, and just 
copy plain text to clip board.

If you don't like that, at least intercept the cut from the second 
EditEngine.
Comment 5 niklas.nebel 2003-09-11 14:26:32 UTC
accepting
Comment 6 niklas.nebel 2003-09-11 15:25:00 UTC
This should have target "later".
Comment 7 oc 2003-09-22 11:12:27 UTC
According to the OpenOffice.org roadmap
(http://tools.openoffice.org/releases) this issue was retargeted to
OOo Later.
Comment 8 frank 2010-04-01 13:45:27 UTC
*** Issue 110365 has been marked as a duplicate of this issue. ***
Comment 9 Marcus 2017-05-20 11:13:12 UTC
Reset assigne to the default "issues@openoffice.apache.org".