DXF14 export changes with document scale (when it shouldn't)

Summary:

In some cases, the DXF export from Inkscape 1.2 has a wrong scale. When importing the DXF drawing the dimensions will not be the same (difference is about 2.645 times bigger)

Steps to reproduce:

  • open Inkscape
  • Load file Test.svg (created from an export from FreeCAD)
  • Save a copy as DXF, with mm as dimensions
  • Load the Test.DXF file

What happened?

  • The dimensions of the original drawing have changed 216.1 mm --> 571,500 mm
  • This is because of the document scale (x10)

What should have happened?

The dimensions should remain the same

Sample attachments: Test.dxf Test.svg

Version info

Inkscape 1.2 (1:1.2.1+202207142221+cd75a1ee6d)
Edited by Nathan Lee
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information