[Libreoffice-bugs] [Bug 128654] EDITING: textboxes not pasted on the same position

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 7 17:33:23 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=128654

--- Comment #3 from Miklos Vajna <vmiklos at collabora.com> ---
Hmm, do you have a strong view on this? :-)

Here is what I see. Writer has two rules in action here:

1) If you cut a shape and paste it, the anchor of the pasted shape will be
changed according to where is the blinking cursor by the time you do the paste.

2) If you delete a shape, the cursor will be relocated to the document model
position which is closest to the x,y position of the shape which is deleted or
cut.

Now, with these rules in mind, here is what happens in the non-textbox case
(shape with simple text): you cut the shape, 2) figures out that the empty
paragraph at the top left corner is the only valid doc model position, so
places the cursor there. You paste and 1) figures out the anchor should be
where the cursor is, which is (in this case) same as what was before the cut.

Here is what happens in the textbox case (shape with complex text): you cut the
shape, 2) figures out that "shape 2" has a Writer paragraph in it, which is the
closest doc model position to the (now cut) shape, and relocates the cursor
there. Then 1) decides the pasted position the same way: this means that the
position is more towards the left and bottom edge of the document, since the x
and y pos of the shape 2 text and the body paragraph is not the same.

In short: in the past rule 2) was not relevant (editeng text positions are not
considered on shape cut) and position was determined according to 1). Now 2) is
relevant and applied, so the effect of 1) is different.

I can "fix" this "regressions" by not allowing the cursor to jump to an
in-textbox Writer paragraph on shape cut, but then somebody will say that: in
the past 5 years, rule 2) was respected in the context of textboxes as well,
and now this is broken.

So I'm leaning towards this is not a bug. Does that make sense?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191107/bf1f78cc/attachment.html>


More information about the Libreoffice-bugs mailing list