Changing display units changes paths with ruler LPE on reopen

Issue split from #1674

Steps to reproduce:

  • open Inkscape
  • create a straight line
  • add a ruler LPE
  • save
  • open document properties
  • change display units to inches (or something different if already inches)
  • save as a different file
  • close
  • reopen both files to compare

What happened?

  • size is dependent on display units (and isn't correct either)

What should have happened?

  • size is independent of display units, and should reflect width/height values in the svg root

Sample attachments:

Following instructions above

mm comparison png in
ruler-units-mm.svg image ruler-units-in.svg

Other test cases taken from #1674

Version Info:

  • Inkscape 1.1-dev (a9d5e92c, 2020-06-30, custom) Linux Mint 19.1
  • Inkscape 1.0alpha2 (883c7bc2, 2019-06-02) appimage Linux Mint 19.1
  • Inkscape 0.92.3 (2405546, 2018-03-11) Linux Mint 19.1