Bug 133959 - Image changes position after changing anchor from paragraph to character and dragging the anchor
Summary: Image changes position after changing anchor from paragraph to character and ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest
: 142339 (view as bug list)
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-06-13 11:48 UTC by Telesto
Modified: 2023-03-27 22:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast (275.26 KB, video/mp4)
2020-06-13 11:48 UTC, Telesto
Details
Example file (672.87 KB, application/vnd.oasis.opendocument.text)
2020-06-13 11:49 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-06-13 11:48:08 UTC
Description:
Image changes position after changing anchor from paragraph to character and dragging the anchor

Steps to Reproduce:
1. Open the attached file
2. Right click the image -> Change anchor to character
3. Drag the anchor up to the first paragraph

Actual Results:
Image moves

Expected Results:
Shouldn't be so


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.1.0.0.alpha0+ (x86)
Build ID: 26483950760f0aac7bc45e93db4127f66a98fdc6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2020-06-13 11:48:46 UTC
Created attachment 161950 [details]
Screencast
Comment 2 Telesto 2020-06-13 11:49:03 UTC
Created attachment 161951 [details]
Example file
Comment 3 Telesto 2020-06-13 11:53:52 UTC
Also in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

even more broken in
4.3.7.2

Adding bibisectrequest to mark bibisect the change which improved things..
Comment 4 Telesto 2020-06-13 11:56:15 UTC
Same happens if you do the opposite.. so 
1. change the to paragraph anchor to to character. 
2. Save and reload.. 
3. Change from to character to paragraph & drag the anchor
Comment 5 Dieter 2020-06-30 08:53:21 UTC
I confirm the described behaviour with

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 33a720ab802491f15b247e09755cd36205b6f435
CPU-Threads: 4; BS: Windows 10.0 Build 19041; UI-Render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded+

but for me it's the expected result: If I move the anchor to a different paragraph (and therefor) to a different character, I expect, that image also moves.
Comment 6 Buovjaga 2020-08-05 15:17:40 UTC
Ok, let's close
Comment 7 Telesto 2020-08-06 08:32:08 UTC
Disagree. Yes, the image might 'move' little up, but if you drag the anchor, the whole image moves to the top of the page

1. Open the attached file
2. Right click the image -> Change anchor to character
3. Drag the anchor up to the first paragraph (as in screencast)

4. Undo everything CTRL+Z
5. Repeat 1-2 -> This is how it should work
Comment 8 Telesto 2020-08-06 08:36:03 UTC
Looks like the remains of some bigger flaw fixed in the 4.4 branch (image did go out of page in 4.3 after changing anchoring). 

So adding bibisect to gather info who did the fix.
Comment 9 Buovjaga 2020-08-21 18:41:01 UTC
(In reply to Telesto from comment #7)
> Disagree. Yes, the image might 'move' little up, but if you drag the anchor,
> the whole image moves to the top of the page
> 
> 1. Open the attached file
> 2. Right click the image -> Change anchor to character
> 3. Drag the anchor up to the first paragraph (as in screencast)
> 
> 4. Undo everything CTRL+Z
> 5. Repeat 1-2 -> This is how it should work

I don't get the screencast behaviour on Windows or Linux. It just moves a notch like one paragraph height.
Comment 10 sdc.blanco 2022-06-19 16:29:57 UTC
(In reply to Telesto from comment #0)
> Actual Results:
> Image moves
> 
> Expected Results:
> Shouldn't be so
imo NAB.

1. Open Position and Size dialog image in attachment (before making any changes).
2. Notice:  From left 6,30cm and From top 3,55 cm "to" Entire paragraph area
3. No NEED to change anchor (same effect with "To paragraph" and "To character").
4. Drag anchor from Para 2 to Para 1.

Actual result:  Image moves, but no change in Position and Size dialog (i.e., still From left 6,30cm and From top 3,55 cm to Entire Paragraph Area)

Why should that be expected?  Because then you can change the location of the anchor, while maintaining the positioning in relation to the paragraph where the anchor is located.

If you do not want the image to change position when the anchor is moved, then use the "Entire page" option for Vertical and Horizontal position.  Now you can change the anchor where you like, but the position on the page will remain the same.
Comment 11 Justin L 2023-03-27 22:19:04 UTC
Absolutely not a bug as comment 10 clearly explained.
If you were moving a to-character anchor from one position in a paragraph to another position in the same paragraph, then I would agree that it is a bug. But as soon as you move to another paragraph, then the image will move.
Comment 12 Justin L 2023-03-27 22:45:33 UTC
*** Bug 142339 has been marked as a duplicate of this bug. ***