Bug 129938 - Wrong position for pasted elements
Summary: Wrong position for pasted elements
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: preBibisect, regression
Depends on:
Blocks:
 
Reported: 2020-01-11 06:31 UTC by Papipio
Modified: 2020-04-17 10:28 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example for Libre Office Draw (17.29 KB, application/vnd.oasis.opendocument.graphics)
2020-01-27 06:12 UTC, Papipio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Papipio 2020-01-11 06:31:06 UTC
In Draw, when copying and pasting an element, sometimes it is pasted exactly over the original copied element (the good solution), sometimes it is pasted close to the original element (the wrong solution), it depends on the element type. There is no reason to paste an element anywhere else than just over the original element.
And when I want to move the pasted element horizontally or vertically with the keyboard arrows, the exact position of the original element is lost, this is annoying.
All the pasted elements must be pasted just over the original elements, there is not any reason to do it another way.

I am currently using LO version 6.2.8.2 available from Mageia Linux.
I just installed 6.4.0.1 version, the problem is still the same.

Pierre
Comment 1 Timur 2020-01-11 09:56:59 UTC
Bug report without reproducible steps cannot be confirmed and is of no use.
Please first search if already reported. 
And if not, write reproducible steps: https://wiki.documentfoundation.org/QA/BugReport
Comment 2 Papipio 2020-01-11 12:12:32 UTC
For reproducing this bug:
- draw a small straight horizontal line (2 or 3 cm) in the middle of the page,
- copy this line,
- paste it: it is pasted a bit on the left under the original line.

If you copy / paste for example a text zone, it is pasted just over the original zone.

Pierre
Comment 3 QA Administrators 2020-01-12 03:43:05 UTC Comment hidden (obsolete)
Comment 4 ian 2020-01-16 16:11:19 UTC
I have reduced the severity of the bug to "minor," as this bug has an easy workaround.
Comment 5 Buovjaga 2020-01-25 20:30:04 UTC
(In reply to Papipio from comment #2)
> For reproducing this bug:
> - draw a small straight horizontal line (2 or 3 cm) in the middle of the
> page,
> - copy this line,
> - paste it: it is pasted a bit on the left under the original line.

No such problem for me.

Arch Linux 64-bit
Version: 6.5.0.0.alpha0+
Build ID: d4561921dde7d350b3b4d5f793871bea8ba4546d
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: kf5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 23 January 2020

Arch Linux 64-bit
Version: 6.3.4.2.0+
Build ID: 6.3.4-2
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: kde5; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded

Also tried gtk3 backend.
Comment 6 Papipio 2020-01-26 08:16:31 UTC
In Libre Office Draw 6.4.0.1 the problem seems to be solved.
If I create a new line, the copied line is pasted just over the original line.
But, if I open an old file, I copy a line and paste it, the pasted line is located a bit on the left under the original line.
So the problem persists !

Pierre
Comment 7 Buovjaga 2020-01-26 08:33:51 UTC
(In reply to Papipio from comment #6)
> In Libre Office Draw 6.4.0.1 the problem seems to be solved.
> If I create a new line, the copied line is pasted just over the original
> line.
> But, if I open an old file, I copy a line and paste it, the pasted line is
> located a bit on the left under the original line.
> So the problem persists !

Please attach such a problematic file.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 8 Papipio 2020-01-27 06:12:13 UTC
Created attachment 157443 [details]
Example for Libre Office Draw
Comment 9 Papipio 2020-01-27 06:22:37 UTC
The attached file shows what I add to an image exported from MuseScore to create a printable diatonic accordion score ...
It was created with a previous version of Libre Office.
If I open it with Libre Office 6.4.0.1:
- copying and pasting a small horizontal line is not correct
- creating a new line, copying and pasting this new line is correct
- and I discover today that copying and pasting a long line is correct. Perhaps these long horizontal lines were created later ...

Pierre
Comment 10 QA Administrators 2020-01-28 03:28:59 UTC Comment hidden (obsolete)
Comment 11 Buovjaga 2020-03-21 10:56:27 UTC
(In reply to Papipio from comment #8)
> Created attachment 157443 [details]
> Example for Libre Office Draw

I confirm the pasting issue with the short lines with latest master and all the way down to 3.5.0. Interestingly, version 3.3.0 does not have this issue. However, I'm not sure, if it makes sense to keep this open as it does not affect newly created files. I should ask for some opinions.
Comment 12 Buovjaga 2020-04-15 16:05:15 UTC
I tried to get feedback for this from developers, but failed. I will close.
Comment 13 Papipio 2020-04-17 06:46:16 UTC
Bonjour,

Sorry the problem still persists in the last version of Libre Office (6.4.2.2).
I just created a completely new file:
- copying and pasting a line in the first page seems OK.
- copying and pasting a line in the second page is not OK. And the position error depends on the length of the line !!!

So, I consider there is a bug in the software: the software must be analyzed and corrected.

Pierre
Comment 14 Buovjaga 2020-04-17 10:28:17 UTC
(In reply to Papipio from comment #13)
> Bonjour,
> 
> Sorry the problem still persists in the last version of Libre Office
> (6.4.2.2).
> I just created a completely new file:
> - copying and pasting a line in the first page seems OK.
> - copying and pasting a line in the second page is not OK. And the position
> error depends on the length of the line !!!

So do you mean that the problem only appears, if you create a document with two pages and work on the second page? Then please give steps for exact reproduction with a new file.