Fixes https://gitlab.com/kicad/code/kicad/-/issues/17372
Grid origin is document-wide, while grid definitions are app-wide. Fixes https://gitlab.com/kicad/code/kicad/-/issues/2262