Fixes broken export to PDF with links.master
commit05e3f15d47957f49fd7208f359aa0eef62f13288
authoraperitero <a.peritero@gmail.com>
Tue, 12 Nov 2024 20:27:26 +0000 (12 20:27 +0000)
committerMarc Jeanmougin <marc@jeanmougin.fr>
Wed, 5 Feb 2025 21:32:57 +0000 (5 21:32 +0000)
tree9e1f02279ad9a1bb703fcf4d9364eb9ccdb3ac29
parent24601e1b49b19de54dd1eeb39e83144e25a97f38
Fixes broken export to PDF with links.

When using a locale with an alternative decimal separator, Cairo 1.16 expects this decimal separator in the "rect" attribute that we use to create links in the PDF. This commit forces the use of the current locale's decimal separator with Cairo 1.16. Additionally it forces the use of the classic locale (and therefore of "." as a decimal separator) for later versions of Cairo.

Fixes https://gitlab.com/inkscape/inkscape/-/issues/5354

(cherry picked from commit 79e0182952ec3f9d25f7b4b63563d351cf7fec5d)
src/extension/internal/cairo-renderer.cpp