Bug 149806 - [VIEWING] Figure caption displays as cut-off when changing anchor to "to character" then undo
Summary: [VIEWING] Figure caption displays as cut-off when changing anchor to "to char...
Status: RESOLVED DUPLICATE of bug 135581
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo Caption
  Show dependency treegraph
 
Reported: 2022-07-01 11:41 UTC by Faisal
Modified: 2024-05-17 03:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Caption half blank (712.47 KB, video/mp4)
2022-07-01 11:43 UTC, Faisal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Faisal 2022-07-01 11:41:48 UTC
Description:
Figure caption is displayed with half of it missing when changing anchor from "as character" to "to character" then undo the change.

Steps to Reproduce:
1. Open attachment 163568 [details] 
2. Select image of figure 3
3. Change anchor from "as character" to "to character"
4. Undo the change (Ctrl+z or Edit > Undo)

Actual Results:
Only the top half of the caption is visible.

Expected Results:
The entire caption, top and bottom, is visible.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.3.4.2 (x64) / LibreOffice Community
Build ID: 728fec16bd5f605073805c3c9e7c4212a0120dc5
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_US); UI: en-GB
Calc: CL

The caption display returns to normal after a PDF version of the document has been exported.
Comment 1 Faisal 2022-07-01 11:43:03 UTC
Created attachment 181066 [details]
Caption half blank
Comment 2 Faisal 2022-07-02 08:59:42 UTC
Also reproducible in 
Version: 7.3.4.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_US.UTF-8); UI: en-US
7.3.4-2
Calc: threaded
Comment 3 Dieter 2022-07-18 08:18:05 UTC
I confirm it with

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: ce29e6299932fc079b05b60662ba95c8342990bc
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
Comment 4 Faisal 2022-08-04 20:17:25 UTC
This bug is already present in Libreoffice 3.3.0

Changing version to "inherited from OOo"
Comment 5 Stéphane Guillou (stragu) 2024-05-17 03:34:03 UTC
Reproduced in:

Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.4
Calc: threaded

How much of the caption remains visible depends on zoom level.

Not reproduced anymore in:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1b45ca1aa7d7cb8e7adcc07f8c60e26a413eca8c
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Bibisected the fix with linux-64-7.6 repo to first _good_ build [4b652faf4fecb2e0c4adecbc26edec99a3118302] which is:

commit d68e428a2ab9f0027ff82d67ae2492d143364586
author	Justin Luth 	Thu Mar 16 18:49:12 2023 -0400
committer	Miklos Vajna 	Wed Mar 22 10:39:53 2023 +0000
tdf#135581 sw UI: keep image in place when changing anchor
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149012

Thanks Justin! :)

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