Fixes https://gitlab.com/kicad/code/kicad/-/issues/17372 (cherry picked from commit 1152b0462c)
1152b0462c
Grid origin is document-wide, while grid definitions are app-wide. Fixes https://gitlab.com/kicad/code/kicad/-/issues/2262