Summary: | When selected cell is in a frozen row/column, the sheet right click event gets the wrong cell | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | mailforbugzilla |
Component: | Calc | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | ilmari.lauhakangas |
Priority: | medium | ||
Version: | Inherited From OOo | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Attachments: | example file showing the problem |
Description
mailforbugzilla
2021-11-10 02:59:01 UTC
(In reply to mailforbugzilla from comment #0) > Description: > The right click event is offset by the frozen rows/columns height/width when > the selected cell is in those frozen ranges and the right clicked cell is > not or vice versa, changing the height/width changes the cell referenced by > the event even when clicked on the same position. > > Steps to Reproduce: > 1. Freeze one or more rows/columns > 2. Write a BASIC macro like this one: > > Function RightClick (oEvent As Variant) As Boolean > MsgBox "Right clicked: " & oEvent.AbsoluteName > RightClick = True > End Function > > 3. Assign the macro to the Sheet's right click event > 4. Select a cell inside the frozen range (left click), and right click any > cell outside. > 5. The address shown will be from the cell in the position clicked minus > total height/width of frozen cells where the selected cell is. (properties > like oEvent.String, oEvent.CellAddress and probably any other property has > data from the wrong cell) I don't know how to do step 3. Best would be, if you created an example document and attached it, so we can quickly test. Set to NEEDINFO. Change back to UNCONFIRMED after you have provided the document. Dear mailforbugzilla, This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INSUFFICIENTDATA due to lack of needed information. For more information about our NEEDINFO policy please read the wiki located here: https://wiki.documentfoundation.org/QA/Bugzilla/Fields/Status/NEEDINFO If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed. Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-NeedInfo-Ping Created attachment 187430 [details]
example file showing the problem
(In reply to Buovjaga from comment #1) > (In reply to mailforbugzilla from comment #0) > > Description: > > The right click event is offset by the frozen rows/columns height/width when > > the selected cell is in those frozen ranges and the right clicked cell is > > not or vice versa, changing the height/width changes the cell referenced by > > the event even when clicked on the same position. > > > > Steps to Reproduce: > > 1. Freeze one or more rows/columns > > 2. Write a BASIC macro like this one: > > > > Function RightClick (oEvent As Variant) As Boolean > > MsgBox "Right clicked: " & oEvent.AbsoluteName > > RightClick = True > > End Function > > > > 3. Assign the macro to the Sheet's right click event > > 4. Select a cell inside the frozen range (left click), and right click any > > cell outside. > > 5. The address shown will be from the cell in the position clicked minus > > total height/width of frozen cells where the selected cell is. (properties > > like oEvent.String, oEvent.CellAddress and probably any other property has > > data from the wrong cell) > > I don't know how to do step 3. > > Best would be, if you created an example document and attached it, so we can > quickly test. > > Set to NEEDINFO. > Change back to UNCONFIRMED after you have provided the document. Added an example file, also the step 3 is on Menu Sheet > Sheet Events |