Apache OpenOffice (AOO) Bugzilla – Issue 18465
Text pasted from clipboard has wrong font and size
Last modified: 2017-05-20 11:13:12 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.
Hi Niklas, one for you ? Frank
Hi Malte, today I think this is your construction site. Frank
Set the flags.
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.
accepting
This should have target "later".
According to the OpenOffice.org roadmap (http://tools.openoffice.org/releases) this issue was retargeted to OOo Later.
*** Issue 110365 has been marked as a duplicate of this issue. ***
Reset assigne to the default "issues@openoffice.apache.org".