Grid dialog box, grid2 - Spacing xX/Y appearing with incorrect numbers after re-open

Incscape version and OS:

Inkscape 1.3-alpha (4127b58, 2023-04-12)

GLib version:     2.64.6
GTK version:      3.24.20
glibmm version:   2.64.2
gtkmm version:    3.24.2
libxml2 version:  2.9.10
libxslt version:  1.1.34
Cairo version:    1.17.7
Pango version:    1.44.7
HarfBuzz version: 2.6.4

OS version:       Linux Mint 20.3

Summary:

Consider the attached svgz file (private hobby project, no sensitive data there) There are two set of grids. I use grid2 normally.

The issue is that when Inkcape opens that file, and then open Document Properties --> Grids -->> grid2, then it does not show the last entered values for Spacing X/Spacing Y. The number appears as 0,02646 but it should have being 0,10000 as entered last time before closing the dialog.

If I manually enter 0,1 for space x/y, there is no visible changes of grid spacing or offset - most other random number will cause visible changes to grid spacing. This make me assume that the apparent numbers that being observed for space x/y is wrong.

... (write here)

Steps to reproduce:

  • open Inkscape, and open attached file
  • open Document Properties --> Grids -->> grid2
  • Do some changes to Space X and Space Y (e.g. write 0,2) (comma is decimal separator due to location)
  • make sure unit is mm
  • Close the Document Properties dialog
  • re-open Document Properties --> Grids -->> grid2

What happened?

The numbers for Space X/Y is now different (I see the number 0,05292)

If I change unit from mm to px, then the numbers get back to 0,2 as I set it. This seems to indicate that it isn't possible to enter spacing for grid2 i millimeters. ...

What should have happened?

Expect that Inkscape remembers both the numbers and unit for grids when Document Properties are closed. ...

Sample attachments:

circuit-diagram-00b.svgz

Version info