Bug 142884 - Impress doesn't save content as deleted from table cell, if cursor is still in that cell
Summary: Impress doesn't save content as deleted from table cell, if cursor is still i...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-15 23:19 UTC by Nemo Inis
Modified: 2021-11-27 19:22 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 Nemo Inis 2021-06-15 23:19:39 UTC
Description:
When saving a document while the content of a table cell is being edited (cursor still blinking inside the cell), Impress will save the cell's edited content if not empty. If on the other hand, you have deleted or cut the cell's content, Impress saves the file, but on re-opening, the cell's content reappears.
(FYI, this does not happen in Writer or Calc).

Steps to Reproduce:
1.add a table to an Impress slide
2.type "test" in a cell, save the document, close and reopen it
3.click in the same cell, rubout or cut the word "test".
4.WITHOUT LEAVING THE CELL, save the document (File->Save, or Ctrl-S, or click the save icon). Close and reopen it.
5. The word "test" is back.
6. repeat steps 2-4, but leave a character or two in the cell (e.g. "t") => partial content is properly saved/reloaded.
7. repeat steps 2-4, but click in another cell before saving => empty content is properly saved/reloaded.

Actual Results:
deleted cell content came back after reopening the file

Expected Results:
empty cell content should be saved, the way Writer and Calc do in the same situation.


Reproducible: Always


User Profile Reset: No



Additional Info:
tested on Linux Debian Unstable LO 7.0.4.2 and Windows 10 LO 7.0.5
Comment 1 Shinji Enoki 2021-06-16 11:44:22 UTC
I reproduced in the following environment:

Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded
Comment 2 Axel Niedenhoff 2021-06-18 07:18:06 UTC
Reproducible under LibO 7.1.4.2.

I have been bitten by this, too, with one difference: For me it doesn’t matter whether you leave the table cell before saving. Deleted text in cells reappears in any case on reload.

The workaround for me is to overwrite the cell context with a space.
Comment 3 Nemo Inis 2021-11-26 20:27:17 UTC
I cannot reproduce this in LO 7.2.x, possibly 7.1.x too (forgot to check).
I could not find an obvious fix in the release notes, so it may have been fixed as a side-effect of something else.
Comment 4 Timur 2021-11-27 19:22:05 UTC
If fix is not known, than it's WFM. 
It would be nice if someone could also test.