Issue 18465 - Text pasted from clipboard has wrong font and size
Summary: Text pasted from clipboard has wrong font and size
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: OOo 1.1 RC3
Hardware: All All
: P3 Trivial with 4 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
: 110365 (view as issue list)
Depends on:
Reported: 2003-08-20 23:41 UTC by Joe Smith
Modified: 2017-05-20 11:13 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this issue.
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
System;Sans Serif and size: 4.8 pt

Only happens when clipboard source is OOo calc entry area (C&P of whole cells is
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 ?

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

today I think this is your construction site.

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 
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 
Comment 5 niklas.nebel 2003-09-11 14:26:32 UTC
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 roadmap
( 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 "".