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: 2025-07-14 12:35 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
Comment 3 QA Administrators 2025-07-13 03:11:07 UTC Comment hidden (obsolete)
Comment 4 Chuck 2025-07-14 12:35:53 UTC
Setting the subdivision size to 96 then hitting the Apply button still causes the subdivisions to change to 99.  It's been so long I no longer remember my exact use case that caused me to discover this, however something is still not right.  Values should not change on their own. There seems to be limits on the value for subdivision as trying to set it to any value over 99 will change it back to 99 on blur from the field.  The subdivision fields will accept any two-digit value.  Start with 99 and work you way down hitting Apply on each change and you'll see the value will change sometimes to a different value.  98,97,96 all change to 99 on apply, 95 does not change, 94,93,92 all change to 95 on apply.  You can keep going from there.  It's just weird.  Also, changing the Visible Grid toggle from this options panel has no effect.  The grid display must be turned on/off using a different method, like right clicking on the drawing to change the grid display.