Bug 37511 - copy-paste between Draw and Writer with RTF results appearing unexpected styles
Summary: copy-paste between Draw and Writer with RTF results appearing unexpected styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Paste Textbox Writer-Styles
  Show dependency treegraph
Reported: 2011-05-23 10:11 UTC by sasha.libreoffice
Modified: 2022-07-26 21:10 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:

document with strange styles (10.76 KB, application/vnd.oasis.opendocument.text)
2011-05-23 10:11 UTC, sasha.libreoffice
Screenshot, See Comment 1 (15.64 KB, image/png)
2011-05-25 08:24 UTC, Rainer Bielefeld Retired
screenshot of (did not occur in (98.22 KB, image/jpeg)
2018-08-10 20:21 UTC, russell

Note You need to log in before you can comment on or make changes to this bug.
Description sasha.libreoffice 2011-05-23 10:11:31 UTC
Created attachment 47056 [details]
document with strange styles

To reproduce this bug start Draw and draw there text frame, then enter text there. Then select this text and press Ctrl-C. Then create new Writer document and press there Ctrl-V. Then press F11 (2 times if Stylist already opened). Ensure that "All styles" in bottom of Stylist selected. 
Among styles appears many new styles with German names. In case of russian UI, names of styles consist of question marks.
In attachment is Writer file after described experiments.

This produced on LibO 3.4 rc 1 on Mandriva 64 bit and windows XP 32 bit
Comment 1 Rainer Bielefeld Retired 2011-05-25 08:23:05 UTC
[Reproducible] with "LibreOffice 3.4.0RC1  – WIN7  Home Premium  (64bit) English UI [OOO340m1 (Build:11)]". To get the effect it's important to copy / paste the text contents of the text box in step "Then select this text ...". The funny styles will not appear if you copy the compete text box (also not if you then will copy / paste the text contents from the box ot the document body).

Styles are called "Default~LT~Gliederung" and similar, I will attach a screenshot.

I also see those styles when I check with OOo 3.1.1
Comment 2 Rainer Bielefeld Retired 2011-05-25 08:24:20 UTC
Created attachment 47149 [details]
Screenshot, See Comment 1

I also see those strange styles in reporter's sample document
Comment 3 clio 2011-05-25 08:47:23 UTC
I can confirm this too (Linux).
Comment 4 Björn Michaelsen 2011-12-23 12:07:05 UTC Comment hidden (obsolete)
Comment 5 sasha.libreoffice 2011-12-25 07:24:36 UTC
reproducible in LibO 3.5.0 beta 1
Comment 6 A (Andy) 2013-04-27 17:39:35 UTC
reproducible with LO (Win7 Home, 64bit)
Comment 7 QA Administrators 2015-03-04 02:22:31 UTC Comment hidden (obsolete)
Comment 8 Jean-Baptiste Faure 2015-03-06 06:08:59 UTC
Still there with LibreOffice built at home under Ubuntu 14.10 x86-64.

The thing that is difficult to understand for the user is that these styles are not visible in Draw when you select the text.
Of course, if you paste without formatting, there is not additional styles.

According to comment #1, I changed version to inherited from OOo.

Best regards. JBF
Comment 9 bugzilla 2015-05-12 20:40:31 UTC
This bug is still present with LO (Win 7).

It is worse than trivial because it causes much confusion as to which custom styles can be safely deleted. 

As well as affecting the copy of text from Draw --> Writer, it is also happens with Writer --> Draw, in fact worse, because ALL the styles in the Writer document get copied over to Draw, and they're of little use!

It would be tolerable if just the style associated with the specific text being copied came over, but they ALL seem to get copied over.

Should I raise a separate bug report for the Writer --> Draw issue??

Regards, Allan
Comment 10 QA Administrators 2016-09-20 09:42:22 UTC Comment hidden (obsolete)
Comment 11 Jean-Baptiste Faure 2016-09-24 16:46:33 UTC
Still reproducible with LibreOffice built at home under Ubuntu 16.04 x86-64.

Best regards. JBF
Comment 12 QA Administrators 2018-07-03 02:39:18 UTC Comment hidden (obsolete)
Comment 13 bugzilla 2018-07-03 11:18:10 UTC
This annoying bug is still present with LO
Comment 14 russell 2018-08-10 20:21:38 UTC
Created attachment 144099 [details]
screenshot of (did not occur in

This might be fixed in

I also tried it in and got the superfluous styles.

Steps in and

1. File > New > Presentation
2. Select a Template: Cancel 
3. Write some text in Title textbox
4. Ctrl-a, Ctrl-c
5. File > New > Text Document
6. Ctrl-v
7. F11 to check styles

Environment: Linux Mint 17.3
LibreOffice deb's were downloaded from libreoffice.
Comment 15 russell 2018-08-10 20:38:52 UTC
The 1st bug post used Draw.

I also tried this: File > New > Drawing, Insert > Text Box, typed some text, selected text, copied text and pasted text in a new Writer document.

When copied to Writer, Styles looked ok in

I should note, when I did the test in, the formatting appeared to be copied too. For example, if the text was centered in Draw or Impress, it was centered in Writer. This is not the case with, but the Styles are ok.
Comment 16 QA Administrators 2019-08-19 07:00:57 UTC Comment hidden (obsolete)
Comment 17 QA Administrators 2021-08-19 03:44:52 UTC Comment hidden (obsolete)
Comment 18 Rainer Bielefeld Retired 2021-08-19 05:11:11 UTC
Comment 19 Regina Henschel 2022-07-26 21:10:46 UTC
The problem still exists in Version: (x64) / LibreOffice Community
Build ID: 5df1bb4b1b222be00d25097660c4ee33542896ea
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL

And the same problem exists in the other direction from Writer to Draw/Impress as well.

It happens, when you use "Rich Text Format" for pasting. It does not happen with "unformated Text" and not with "HTML Format".

The problem is annoying, because an Undo does not remove the styles and you can only delete styles one-by-one.