Bug 150801 - Writer: Copying and pasting frame with QR code produces additional copyies of QR code
Summary: Writer: Copying and pasting frame with QR code produces additional copyies of...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-05 17:02 UTC by bbiegun
Modified: 2022-09-07 12:46 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Screenshots (68.15 KB, application/pdf)
2022-09-05 17:02 UTC, bbiegun
Details
sample doc (14.41 KB, application/vnd.oasis.opendocument.text)
2022-09-06 15:40 UTC, bbiegun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bbiegun 2022-09-05 17:02:06 UTC
Created attachment 182230 [details]
Screenshots

Copying and pasting frame with QR code produces additional copyies of QR code outside of frame in Writer.

Fedora version: 7.3.5.2-1.fc36, x86_64
Fedora src package: libreoffice-7.3.5.2-1.fc36.src.rpm
UI lang: PL, EN

Steps to reproduce:
- open fresh LibO writer window using `soffice --writer`
- insert a frame by using Insert > Frame > Frame ...
- deselect autoSize
- click OK
- click inside of frame
- add a QR code inside the frame using Insert > Object QR and barcode...
- insert some text, eg. `test`
- click OK
- click on the QR code
- set wrap option to 'through'
- enlarge frame so QR code would fit
- click on the frame and hit ctrl-C
- click outside of frame
- click ctrl-V
- move pasted frame so the original one become visible

Outcome:
- additional QR code outside of frame is being created

Expected outcome:
- no excessive QR codes are created
Comment 1 Timur 2022-09-06 15:19:50 UTC
Please attach sample document and in it write minimal steps to reproduce.
Comment 2 bbiegun 2022-09-06 15:39:39 UTC
Here is the sample document. I'm sorry, but I didn't get you about the steps to reproduce. Do you require a copy inside of document the ones I placed in the bug?
Comment 3 bbiegun 2022-09-06 15:40:01 UTC
Created attachment 182266 [details]
sample doc
Comment 4 Timur 2022-09-06 17:48:36 UTC
Normally you mark steps by number, ex. 1-5.
Then you say: or open sample and do steps 4-5.
Comment 5 Timur 2022-09-07 12:36:00 UTC
If I open attachment 182266 [details] and Ctrl+V on a frame and Ctrl+V, it will just duplicate that frame. 
So you need to give steps for attached document or attach another one with steps.
Comment 6 bbiegun 2022-09-07 12:38:34 UTC
As my report starts from a blank, new file I hope I have covered all the steps in the description. The steps are to be followed from the empty document.

I can add new file with just single frame, but all the steps are covered in the report.

When you duplicate the frame from my previous document please move around all the elements (including QR code on left) and you'll see new copies.
Comment 7 Timur 2022-09-07 12:46:16 UTC
I think that mystery code is resolved. 
In LO 7.3 coping of frame with QR woudn't paste a frame, just QR.
But in 7.4.0 and master 7.5+ full frame is pasted. 
So I both confirm and close the bug. 

You may verify by making Appimage per https://wiki.documentfoundation.org/Installing_in_parallel/Linux.