Bug 140206 - Inconsistent layout changes when changing anchoring and undo
Summary: Inconsistent layout changes when changing anchoring and undo
Status: RESOLVED DUPLICATE of bug 135581
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Undo-Redo
  Show dependency treegraph
 
Reported: 2021-02-06 08:36 UTC by Telesto
Modified: 2023-03-15 18:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-02-06 08:36:43 UTC
Description:
Inconsistent layout changes when changing anchoring and undo part of them 

Steps to Reproduce:
1. Open attachment 163564 [details]
2. Change anchor from figure 2 to 'to character' -> Figure 3 goes to page 2
3. Select figure 3 and change anchor to 'to paragraph' -> figure moves up to page 1
4. Undo -> Figure 2 still on page 1

Actual Results:
Inconsistent results 

Expected Results:
Consistency


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3ed9bba283a6a67864c0928186e277240be0d9ba
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 2021-02-06 08:37:47 UTC
Also in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL
Comment 2 Telesto 2021-02-06 08:39:09 UTC
And in
Versie: 4.2.0.4 
Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71
Comment 3 Dieter 2021-02-21 12:04:47 UTC
(In reply to Telesto from comment #0)
> Steps to Reproduce:
> 1. Open attachment 163564 [details]
> 2. Change anchor from figure 2 to 'to character' -> Figure 3 goes to page 2
I confirm that. A new paragraph is added. I would consider this as a bug, but that might be a different one.

> 3. Select figure 3 and change anchor to 'to paragraph' -> figure moves up to
> page 1
I can't confirm that

> 4. Undo -> Figure 2 still on page 1
Undo works as expected.

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 28555fc345ac2ccdda0e4e0f3c812c646befe68b
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 4 Dieter 2022-02-14 21:01:17 UTC
Telesto, could you please have a look at this report with actual master.

I've retested with

Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Step 2 adds an additional paragraph (I would treat it as a bug), but figure 3 is still on page 1. So my proposal is to reduce this report to additional paragraph.
Waht do you think?
=> NEEDINFO
Comment 5 QA Administrators 2022-08-14 04:11:35 UTC Comment hidden (obsolete)
Comment 6 Telesto 2022-08-14 09:34:08 UTC
No clue if the rendering changed. I assume the document looked differently on file open, like this
1. Open attachment 163564 [details]
2. Check the position of figure 3
3. Change the anchor of figure 1 to to character
4. Press undo
5. Check the position of figure 3

There surely something wrong

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 7a89eae97a970939174d59aa58147eaa194acaee
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 7 Dieter 2022-08-14 10:40:18 UTC
I confirm bug with following steps

1. Open attachment 163564 [details]
2. Check the position of figure 3 (page 1)
3. Change the anchor of figure 1 to to character (change of layout; expected, because image wrap changes to "Before")
4. Press undo

Actual result:
Figure 3 on page 2 and empty space on page 1

Expected result:
Figure 3 on page 1

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a56d0c34716f381accbd9d2e3040a62d3583d18d
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL
Comment 8 Justin L 2023-03-15 18:34:04 UTC
Undo noted in a see also bug. Shape moving around when changing anchor type was another Telesto bug 135581.

*** This bug has been marked as a duplicate of bug 135581 ***