DXF r12 incorrectly scales objects when document scale isn't 1.

Summary:

Issue updated for current 1.2-dev behavior! Exporting a dxf R12 version results in dxf objects that are scaled up/down if the document scale is not 1.

Steps to reproduce:

  • Open Inkscape
  • Ensure Document Units/Custom size units are in mm
  • Set scale to 7 (or more realistically, a value like 3.77953)
  • Create a 100mm x 100mm rectangle and convert to path
  • Save a copy as DXF R12
  • Open dxf in various cad programs

What happened?

  • The rectangle is scaled down by the document scale.

What should have happened?

  • Like in 0.92.x, the rectangle should be 100x100mm

NB This does not occur with export to R14 dxf.

Sample attachments:

100mmrect-mm_1_R12.dxf

100mmrect-mm_1_R14.dxf

100mmrect-mm_1.svg

Version Info

Inkscape 1.2-dev (787861ebef, 2022-01-22) Linux Mint 20, with extensions at latest
Edited by Nathan Lee