Bug 98215 - EDITING: copy/paste of words from one doc to another changes text paragraph style
Summary: EDITING: copy/paste of words from one doc to another changes text paragraph s...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-27 05:14 UTC by Luke Kendall
Modified: 2016-03-10 12:46 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screen grab of original text on left, and the changes made on the right (156.20 KB, image/png)
2016-02-27 05:14 UTC, Luke Kendall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Kendall 2016-02-27 05:14:00 UTC
Created attachment 123021 [details]
Screen grab of original text on left, and the changes made on the right

I'm copying some text with an associated comment from one paragraph of style "Text Body" in one document into a paragraph of style "Text Body" in another document.

The words copied, and sometimes the following sentence as well, changes from Text Body style to Default Text style.

I think it is an error to change the paragraph style of text that you copy, when that text is less than a whole paragraph (in the latest example, it was a single word and the full stop after it, at the end of the paragraph).

I also think it's an error to change the text from the paragraph style that it was formatted with (Text Body) into another style (Default paragraph).

In both documents, Text Body is defined (I believe) the same, with the same pacing above and below, and same font and font size.

It just happened again, and if you look closely you'll also see that it has changed the font size of the text immediately following the text which I copied over the top of (this is in the right hand side document).  In other words, it changed the style of some text that had not even been selected!  If you look at the font size part of the UI, you'll see that it has changed the font style from Times New Roman 14 pt to Times New Roman 12 pt.  The only 12pt text I'm aware of is the 12pt Liberation Serif used in the source document - and of course the text which the paste has now changed into TNR 12.

Selecting the whole paragraph shows that the paragraph style is "Default Style".  Changing this back to "Text Body" corrects the errors introduced by the paste.
Comment 1 Luke Kendall 2016-03-01 09:31:06 UTC
I don't know if this is relevant, but since upgrading to 5.1.0.3, I've noticed that when I paste from a paragraph style of Default Style in a document where I record and compose my my tweets into the Tweet text field on Twitter in Firefox, instead of pasting just the text, it has begun including a odd preamble ("p {...link {  }") before the text portion (which starts "#amwriting..."):

          p { margin-bottom: 7pt; line-height: 120%; }a:link {  }    #amwriting Added 600 wds, cut 200; now 20% through my revisions.

This never used to do happen until LO 5.1.0.3; and the stuff that looks like a paragraph style and an empty hyperlink only appears if I paste into Twitter's "Compose new Tweet" panel.  It doesn't appear if I paste into a Terminal, or into another LO document, or even into this test field here (I had to copy it from Twitter to get it here: I tried pasting straight from LO here, but that just produced the text part).

HTH
Comment 2 Luke Kendall 2016-03-04 07:18:55 UTC
Earlier this week, with LO performing slowly, the screen locked on me twice (as if I had used the keyboard shortcut - for me, Ctrl-Alt-L - to lock the screen, as if I had typed it. (I hadn't.) Then a 3rd time, the screen appeared to lock up, but on this occasion it appeared that the computer had been put into Suspend mode. On this Intel NUC system, I had only ever tried Suspend mode once, as that had me thinking I'd bricked the system. (Some weird firmware problem where it won't progress to the BIOS boot unless you unplug all UDB3 devices, and sometimes also all HDMI device.)

Anyway, after (eventually) managing to successfully reboot the system, I've been doing heaps of the editing described below, but have not experienced any repetition of the problem.

The behaviour described in Comment 1 however is still perfectly reproducible.

But the main problem I was reporting has not recurred once since the reboot.  I suspect that since the reboot, I've been running a later kernel.
Comment 3 Buovjaga 2016-03-10 12:46:57 UTC
Ok let's close this, then.
For the Twitter thing, check with latest 5.2 http://dev-builds.libreoffice.org/daily/master/
Then open a new report.