Bug 125764 - hyperlink active region inaccurate in scaled sheet (truncated fractions?)
Summary: hyperlink active region inaccurate in scaled sheet (truncated fractions?)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink-Calc
  Show dependency treegraph
 
Reported: 2019-06-07 00:05 UTC by gekacheka
Modified: 2024-03-15 05:55 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample demonstrating bug when scaled to 65% or 200% (11.49 KB, application/octet-stream)
2019-06-07 00:10 UTC, gekacheka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gekacheka 2019-06-07 00:05:28 UTC
Description:
The location of the active region of a hyperlink is inaccurate when
- a spreadsheet is scaled, and
- a cell contains long text (such as a dozen words) before a hyperlink.
- the cell is not being edited.

(I'm using 'active region' to name the region where the cursor turns into a hand and where control-click will follow the hyperlink.)

There is no error if the cell is scaled to 100%. 
There is error when the spreadsheet is zoomed out to 65% or zoomed in to 200%.
The direction of the error is the same for both shrinking to 65% and expanding to 200%: both shift the region to the left.
If the cell is not wrapped, then the active region will be a bit to the left.
If the cell is wrapped, then the active region may be at the end of the previous line.

(Guess: Maybe the scaled region location calculation is truncating fraction bits, so the sum of scaled letter widths may become too small both when scaling up and when scaling down.)

There is no error while the cell is being edited, so a correct algorithm is known.

Steps to Reproduce:
1. Open attached spreadsheet "HyperlinkRegionInaccurateInScaledSheet.ods"
(The initial scale should be 65%.  If not, change the scale to 65% with the slider at the lower right.)
2. Hover the mouse near the hyperlink of the word "end" in cell A1.


Actual Results:
Cell A1:
At 65% magnfication, cursor turns to hand over 'RY' of 'VERY'.
At 200% magnification, cursor turns to hand over 'Y e'.
At 100% magnification, cursor turns to hand over 'end', correctly.
F2 in A1 to edit cell, then 'end' is highlighted correctly at all magnifications.
Cell B1:
At 65% magnification, if the cell is wrapped, then cursor may turn to hand at the end of the previous line, not near the word 'end'.


Expected Results:
In each scale, the cursor should turn to a hand when it hovers over the word 'end'.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.2.3.2 (x64)
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

Also reproduced in 

Version: 6.3.0.0.beta1 (x64)
Build ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 1 gekacheka 2019-06-07 00:10:15 UTC
Created attachment 151999 [details]
sample demonstrating bug when scaled to 65% or 200%
Comment 2 raal 2019-06-23 08:54:22 UTC
I can confirmwith Version: 6.4.0.0.alpha0+
Build ID: 9712f5d2316fa469b92f2f8092925e2cd4e8dd5b
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: x11;
 
and Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
Comment 3 QA Administrators 2021-06-23 03:48:28 UTC Comment hidden (obsolete)
Comment 4 gekacheka 2021-07-03 17:41:36 UTC
Bug still present.

Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc:
Comment 5 QA Administrators 2023-07-04 03:13:29 UTC Comment hidden (obsolete)
Comment 6 gekacheka 2023-07-29 10:19:55 UTC
Confirmed problem is still present.

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded