Bug 155305 - A double click event in a cell does not work because a comment is too long in another cell
Summary: A double click event in a cell does not work because a comment is too long in...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
6.1.0.3 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: implementationError
Depends on:
Blocks: Calc-Comments
  Show dependency treegraph
 
Reported: 2023-05-14 22:01 UTC by Carlos Codina
Modified: 2024-01-14 11:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
the file with macros where the problem can be reproduced (2.07 MB, application/vnd.ms-excel.sheet.macroEnabled.12)
2023-05-14 22:02 UTC, Carlos Codina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Codina 2023-05-14 22:01:33 UTC
Description:
Very strange problem in my complex spreadsheet due to a long comment in a cell. Unbelievable

Please enable de macros and try to reproduce the steps.

You can use a virtual machine if you don't trust my macros

It is very complex to reproduce from scratch, so I need to send you the XLSM file that works fine with Microsoft. Please request me the file, because I cannot see here any place to attach the file

Steps to Reproduce:
1.Open the file I want to attach but there is no option. Please request me the file
2.Accept the popup message shown
3.Press the '>>> CALCULAR <<<' button on the first row
4.Accept the popup message shown
5.Perform a double click event over the cell 13-F
6.It will appears something like a tooltip message. Close it
7.Perform a double click event over the cell 5-F
8.It should appear something similar to step 6, but it appears a formula
9.Remove the existing comment in cell 2-D
10.Perform again a double click event over the cell 5-F
11.Then you can check the expected message, like in step 6.

-> the double click event is not executed due to the long comment in cell 2D

I can provide a video



Actual Results:
Step 8 is wrong

Expected Results:
double click working for all cells


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: es
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 Carlos Codina 2023-05-14 22:02:45 UTC
Created attachment 187282 [details]
the file with macros where the problem can be reproduced
Comment 2 Buovjaga 2023-05-17 13:48:13 UTC
Reproduced.

I tested with older versions and before 6.1 the file did not behave correctly at all. So from the time it started working more or less correctly, the problem has existed.

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 85a47bbb8340e65a19dc1ceaac768902a771ee77
CPU threads: 8; OS: Linux 6.3; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 17 May 2023
Comment 3 Andreas Heinisch 2023-07-19 09:22:55 UTC
The problem arises in sc/source/ui/unoobj/viewuno.cxx in ScTabViewObj::GetClickedObject where it wrongly selects the hidden comment.
Comment 4 Carlos Codina 2024-01-14 11:58:57 UTC Comment hidden (no-value)