Bug 141816 - EDITING: text is displayed in shape after undo on a shape change
Summary: EDITING: text is displayed in shape after undo on a shape change
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Mike Kaganski
URL:
Whiteboard: target:7.2.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2021-04-21 20:22 UTC by Xisco Faulí
Modified: 2021-04-22 13:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file (7.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-04-21 20:22 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2021-04-21 20:22:04 UTC
Created attachment 171346 [details]
sample file

This is an issue I found while creating a unitest for bug 119793 < https://gerrit.libreoffice.org/c/core/+/114457 >

Steps to reproduce:
1. Open attached document
2. Select the shape
3. Move it to the right
4. Type 'x' -> Since the shape is selected, it's inserted inside it.
5. Press undo -> the 'x' disappears
6. Press undo again -> The 'x' is again displayed

Reproduced in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 93bb5fcba9e58eeeaaed9521c3bb4eecf9b91ac1
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 Xisco Faulí 2021-04-21 20:22:52 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=f582670131dc211e472960ecff1826f7b133b083

author	Mike Kaganski <mike.kaganski@collabora.com>	2021-01-14 17:30:17 +0100
committer	Mike Kaganski <mike.kaganski@collabora.com>	2021-01-15 07:26:48 +0100
commit f582670131dc211e472960ecff1826f7b133b083 (patch)
tree 014a0e74ecaace01a2d9e7efbee119781ebb0a22
parent 9598018e67dfc10c35022cbec4844363b7dd98ab (diff)
Use value comparison here

Bisected with: bibisect-linux64-7.2

Adding Cc: to Mike Kaganski
Comment 2 Commit Notification 2021-04-22 04:13:39 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/bfe800f773b0fe945452dc59205c156d0fc69462

tdf#141816: fix a thinko

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Xisco Faulí 2021-04-22 08:24:09 UTC
Verified in a local build including the patch.

@Mike, thanks for fixing this issue to quick !!
Comment 4 Commit Notification 2021-04-22 13:53:10 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/310f2ec225582df8701422e7c69ee40e1af50660

tdf#141816: sc_uicalc: Add unittest

It will be available in 7.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.