When a cell has a comment text, when we select the cells near the commented cell, the comment is recognized but not the cell "below". This occurs if the comment is displayed or not.
Installing Xray extension helps to understand this problem.
See the attachment to see this behavior.
Steps to Reproduce:
1.In a sheet, create a "double-click" event and attach a macro that works for a cell.
2. In a cell, add a comment text.
3. Near the commented cell (above the cells where the comment is normally displayed), make a double-click.
4. An error occurs because the double-click is for the comment not for the cell.
The comment text shouldn't interact. It's like the comment text (displayed or not) has priority over the cell even though the cell is selected.
User Profile Reset: No
Build ID: 1:6.0.6-0ubuntu0.18.04.1
Threads CPU : 8; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3;
Locale : fr-FR (fr_FR.UTF-8); Calc: group
Created attachment 145362 [details]
Calc document to see the cells concerned by the error
In the sheet, the green cell has a comment text.
Double-clik on the red cells, causes an error with the macro attached at the double-click event of the sheet.
The macro works for the cells : it displays the cellStyle name.
The red cells are below where the comment text is displayed.
No problem with the other cells.
When I activate the xray extension, we can see that the object are different : ScCellObj for the cells with no problem, and com.sun.star.comp.sc.ScShapeObj for the cells below the comment text.
Created attachment 145386 [details]
video showing the bug
I hope this is the bug you reported. See the video.
Build ID: a906b68a9fff30c2af5c03189e59c1952cd3f69f
CPU threads: 4; OS: Linux 4.15; UI render: GL; VCL: gtk2;
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2018-09-30_19:07:59
Locale: ro-RO (ro_RO.UTF-8); Calc: threaded
Yes, the video shows the bug.
I noticed that this bug appears only if you have displayed the comment once. Until the comment isn't displayed, no error occurs.
But once the comment has appeared, even if it is no more displayed, the error occurs : it's like the comment remained : it's not visible but it's still here.
Other observation :
If the comment is displayed all the time (with the option chosen by right click in the cell with the comment), no error.
I can reproduce it in
Id. de compilación: 65905a128db06ba48db947242809d14d3f9a93fe
Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.;
Configuración regional: es-ES (es_ES); Calc: group threade
but not in
Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); Calc: group
(In reply to Xisco Faulí from comment #6)
> I can reproduce it in
> Versión: 184.108.40.206
> Id. de compilación: 65905a128db06ba48db947242809d14d3f9a93fe
> Subprocs. CPU: 1; SO: Windows 6.1; Repres. IU: predet.;
> Configuración regional: es-ES (es_ES); Calc: group threade
> but not in
> Version: 220.127.116.11.alpha1+
> Build ID: 9feb7f7039a3b59974cbf266922177e961a52dd1
> CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
> Locale: ca-ES (ca_ES.UTF-8); Calc: group
I reproduced the bug with Version: 18.104.22.168.alpha0+
Build ID: dea4a3b9d7182700abeb4dc756a24a9e8dea8474, Windows7