Bug 154201 - Grid resolution not correctly restored from opened document
Summary: Grid resolution not correctly restored from opened document
Status: RESOLVED DUPLICATE of bug 78035
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-15 11:04 UTC by fmgtack+libreoffice
Modified: 2023-04-27 00:01 UTC (History)
0 users

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 fmgtack+libreoffice 2023-03-15 11:04:35 UTC
When the user changed the grid resolution setting in Tools - Options - LibreOffice Draw - Grid, resolution, a document saved with a different grid resolution will at first correctly display the grid resolution saved with it. Tools - Options, however, does not show the settings of the document, but instead shows the ones last set on a different document. As soon as the user changes something about the grid (visibility, snap to grid), the grid resolution reverts to the one displayed in the settings.

# Steps to reproduce the issue:

1. Create a new file. For this example, turn grid visibility on, and set the units to point (Tools->Options->Draw->General->Unit of measurement) and the grid resolution to 60 (Tools->Options->Draw->Grid->Resolution->Horizontal/Vertical). Save the file as test1.odg

2. Close test1.odg (or leave it open). Copy test1.odg to test2.odg

3. Open test2.odg. Set the grid resolution to 20. Save test2.odg

4. Open test1.odg. The grid displays initially displays with a resolution of 60, as set for that document. Now check Tools->Options->Draw->Grid and see that resolution shows "20" instead of "60", the setting of the document. Close the Options dialog.

5. Toggle Snap to Grid (View - Snapguides - Snap to grid). Suddenly, the grid displays with a resolution of 20 rather than 60.

This also happens when turning visibility on/off (View - Grind and helplines - Snap to Grid)

# Expected behavior

Similar to document options such as Drawing Scale, Units of Measurement, etc., also grid settings should be correctly saved and restored when the document is opened again.
Comment 1 Stéphane Guillou (stragu) 2023-04-27 00:01:13 UTC
Reproduced in:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

A solution is already suggested in bug 78035, marking as a duplicate.
Thank you!

*** This bug has been marked as a duplicate of bug 78035 ***