Bug 120078

Summary: When inserting snap guide lines, the position should be relative to page, not margin
Product: LibreOffice Reporter: counterbug
Component: DrawAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: minor CC: ilmari.lauhakangas, romain2boss
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112621    
Attachments: New option to define coordinate system of the guide

Description counterbug 2018-09-23 09:54:14 UTC
Description:
The amendment consists in changing the counting of the height of the attraction line from the page format regardless of the size of the internal margins.

See screenshot:
https://zapodaj.net/82276c1ecd79c.png.html


Steps to Reproduce:
1. Insert
2. guides
3. horizontal
4. Height in mm

Actual Results:
1. Insert
2. guides
3. horizontal
4. Height in mm

Expected Results:
Lines at the same correct height. Half of the page is only one it's the 148,5mm in A4 (210x297mm)


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Comment 1 Buovjaga 2018-10-14 15:43:05 UTC
Repro already in 3.3.0

1. View - Snap Guides - Display snap guides
2. Insert - Snap guide - Horizontal - 148,5 mm
3. Page - Properties - Page - set margins to 0
4. Repeat step 2

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 00e10ae3189a4407ffb1a48f836cd52dc9a1b6df
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on 13 October 2018
Comment 2 QA Administrators 2019-10-15 02:29:00 UTC Comment hidden (obsolete)
Comment 3 romain2boss 2020-03-20 13:40:29 UTC
Repro in Draw 6.4.2.2

I faced the same issue. But instead of changing the behaviour of this function I suggest to add a checkbox telling if the value is relative to the internal margins (by default) or to the page. See attached.
Comment 4 romain2boss 2020-03-20 13:41:33 UTC
Created attachment 158833 [details]
New option to define coordinate system of the guide
Comment 5 QA Administrators 2022-03-21 03:26:47 UTC Comment hidden (obsolete)
Comment 6 romain2boss 2022-03-21 20:41:35 UTC
Still not implemented in Draw 7.3.1.3 (x64). An option to be relative to page or to margin would probably do the job.
Comment 7 QA Administrators 2024-03-21 03:15:03 UTC Comment hidden (obsolete)
Comment 8 romain2boss 2024-04-25 18:42:01 UTC
Reproduced in:
Version: 7.6.6.3 (X86_64) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: CL threaded