Bug 142737 - Dialog box from menu: Tools➔Options➔LibreOffice Draw➔Grid changes user entered value for subdivision horizontal and vertical value under certain conditions
Summary: Dialog box from menu: Tools➔Options➔LibreOffice Draw➔Grid changes user entere...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Options-Dialog
  Show dependency treegraph
 
Reported: 2021-06-09 13:54 UTC by Chuck
Modified: 2023-07-13 08:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chuck 2021-06-09 13:54:10 UTC
Description:
Grid options not retained on Apply or OK and the result yields an incorrect grid and incorrect dimension line values.

Steps to Reproduce:
1. Set scale to 1:16.  
2. Set resolution to 0.75" for both horizontal and vertical.  
3. Set Subdivision to 96 for both horizontal and vertical.  
4. Click Apply.  



These settings should yield a grid with lines at 12" and subdivisions every 1/8".  Drawing dimensions lines using this setting yields incorrect values due to the value of 96 not being retained. I had similar problems with dimemsion lines even when the subdivision value is retained.  E.G., using a value of 48 should yield 1/4" (0.25") divisions, however, dimension lines would occasionally yield values with x.74 instead of always breaking at x.00, x.25, x.50, and x.75. I suspect there is a rounding problem in the calculation somewhere.

Actual Results:
Subdivision values will change to 99 and not retain the value of 96.

Expected Results:
Subdivision values will retain the value of 96.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
The dialog box should not change the user entered value of 96
Comment 1 Екатерина 2021-08-01 17:30:47 UTC
confirm in Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: cb2827f5f65324f309fa0e3c30d0b19ad237410e
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL
Comment 2 Sophie Sipasseuth 2023-07-13 08:26:13 UTC
Hello chuck,

Thanks for reporting the bug.
Unfortunately without specific steps to reproduce it, it is difficult to track down the origin of the problem.
Please provide a more detailed set of step-by-step instructions on how to reproduce the issue, including where to adjust resolution and subdivision.

Thanks