Bug 71989 - EDITING: CUT can't be restored with Undo in select-all text
Summary: EDITING: CUT can't be restored with Undo in select-all text
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2013-11-25 13:43 UTC by Jérôme Borme
Modified: 2023-01-28 17:41 UTC (History)
3 users (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 Jérôme Borme 2013-11-25 13:43:45 UTC
I could find several "Undo is broken" bugs like bug 37405 bug none matched this exact issue.

Steps to reproduce:
1. Open a new Impress presentation
2. Draw a text area and type in a text
3. Edit/Select all (selects all text in the text area).
4. Edit/Cut. At this point the cursor is inside an empty text area.
5. Press Escape or click somewhere on the page. At this point the empty area is deleted.
6. Use Edit/Undo

Result: Text area is NOT restored. If there were more events in the undo history, these are correctly undone. Just this text area disappeared from the Undo history.

Variation

Perform steps 1 and 2, then do the following:
2a. Click somewhere else in the page.
2b. Click inside the text area.
2c. Add more text inside the text area.
Perform steps 4, 5, 6 as described above.

Result: Undo unexpectedly restores the text area like it was after step 2, forgetting about all changes done at steps 2a, 2b, 2c.
Comment 1 Jérôme Borme 2013-11-25 13:49:27 UTC
I forgot to mention that the result of the variation bug, it can happen that the text area is not restored to the correct dimensions, being restored to some kind of "zero width" instead (text then appears one letter per line, like written vertically). I could not find a reproducible recipe for this specific occurrence but it happened several times during my tests.
Comment 2 ign_christian 2014-07-03 07:14:52 UTC
Reproducible with LO 4.3.0.1, 4.2.5.2, 3.6.7.2 - Ubuntu 12.04 x86.

Same behavior in AOO 4.1.0, I guess this is an old bug inherited from OOO.
Comment 3 QA Administrators 2015-07-18 17:42:39 UTC Comment hidden (obsolete)
Comment 4 Jérôme Borme 2015-07-18 18:15:39 UTC
Bug still present in LO 4.4.3.2 (gentoo linux)
Comment 5 QA Administrators 2016-09-20 10:17:52 UTC Comment hidden (obsolete)
Comment 6 Telesto 2018-02-15 18:01:06 UTC
Repro
Version: 6.1.0.0.alpha0+
Build ID: 06cfd5a962f9d8d9462fc270f1b1f730c90bddfe
CPU threads: 4; OS: Windows 6.3; UI render: default; 
Locale: nl-NL (nl_NL); Calc: CL
Comment 7 Heiko Tietze 2018-02-20 21:53:27 UTC Comment hidden (no-value)
Comment 8 Heiko Tietze 2018-02-20 21:54:25 UTC Comment hidden (no-value)
Comment 9 QA Administrators 2019-10-28 03:28:36 UTC Comment hidden (obsolete)
Comment 10 Jérôme Borme 2019-10-28 11:31:11 UTC
Bug still present in LO 6.3.2.2 (gentoo linux)
Comment 11 Telesto 2021-01-22 18:50:14 UTC
Unchanged
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6ee7a3b2c0565c2871d32d704cb2899445b9f88d
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 12 QA Administrators 2023-01-23 03:22:15 UTC Comment hidden (obsolete)
Comment 13 Jérôme Borme 2023-01-28 17:41:58 UTC
I found that the text area is now restored (empty) after doing Undo, so I resolved as WORKSFORME

There is still an issue that after point 6 of the instructions, further Undo forgot the text that was inside the area. However, it is not what was originally reported in this bug.

Version: 7.5.0.2 (X86_64) / LibreOffice Community
Build ID: 50(Build:2)
CPU threads: 32; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-PT (fr_FR.utf8); UI: en-US
Gentoo official package
Calc: threaded

LO About dialogue says "Gentoo official package" but this the case (official package is 7.4.4.2), this is a more recent ebuild from a layman overlay at https://gitlab.com/Perfect_Gentleman/PG_Overlay.git