Bug 148845 - Writer: The autocaption doesn't work correctly after cut and undo
Summary: Writer: The autocaption doesn't work correctly after cut and undo
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:odt
Depends on:
Blocks: AutoCaption
  Show dependency treegraph
 
Reported: 2022-04-29 07:23 UTC by NISZ LibreOffice Team
Modified: 2023-11-04 03:15 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample odt file for the test (679.29 KB, application/vnd.oasis.opendocument.text)
2022-04-29 07:25 UTC, NISZ LibreOffice Team
Details
This is the result after cut and undo the first frame (114.54 KB, image/png)
2022-04-29 07:26 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2022-04-29 07:23:09 UTC
Description:
When I cut it and undo a drawing object frame the autocaption doesn't work correctly.
The undo frame doesn't get back the previous caption.

Steps to Reproduce:
1. Open the attached file.
2. Select the Figure 1 frame
3. Ctrl + X
4. Ctrl + Z

Actual Results:
After cut and undo the first frame caption change Figure 2 and the second frame Figure 1.

Expected Results:
The first undo frame have to back to Figure 1 caption and the second frame Figure 2 after undo.



Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 83d0f2eebae41d431d9a5bfd1a918523977752d0
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2022-04-29 07:25:20 UTC
Created attachment 179834 [details]
Sample odt file for the test
Comment 2 NISZ LibreOffice Team 2022-04-29 07:26:49 UTC
Created attachment 179835 [details]
This is the result after cut and undo the first frame
Comment 3 sdc.blanco 2023-04-06 14:10:39 UTC
@NISZ LibreOffice Team:  Are you sure this is AutoCaption?

The STR seem more like an "Undo" issue, where deleting the first frame updates the "number range" variable (for the remaining second frame).

But there is an additional issue.  When I open the test file and immediately press F9 (update fields), then the caption numbers change, so that Frame 1 gets caption number 2 and Frame 2 gets caption number 1.

Thereafter, you can delete Frame 2 (with caption number 1) and Undo, with everything looking like it should.

Smells like NAB (that arose because the fields were not updated) -- but now I will set NEEDINFO and ask you to try again to confirm that this is NAB.

My test was with LO 7.2.7.2   (so not an issue of a later change)
Comment 4 QA Administrators 2023-10-04 03:18:19 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-11-04 03:15:06 UTC
Dear NISZ LibreOffice Team,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp