Zoom changed when new document read in (but not reflected in UI zoom level)

Steps to reproduce:

  • open Inkscape (default template should be used)
  • Zoom in to 280% (or till canvas page width is wider than your screen)
  • Extension > Render > Alphabet Soup > Apply

Alternatively

  • open Inkscape (default template should be used)
  • Note how big the page width is, and the zoom percentage (should be 35%)
  • Ctrl+W (close the document)
  • You are zoomed in, but the zoom percentage is still 35%

What happened?

  • Note that we are suddenly zoomed out a bit but the zoom value still says 280%
    • If you zoom out, the zoom seems to correct itself

What should have happened?

  • correct zoom value shown
  • zoom shouldn't change after running an extension (or maybe it should, but then the current zoom/position should be recorded before sending it to the extension)

Version Info:

  • 1.1-dev (156e408be7, 2020-09-02) Linux Mint 20
  • Introduced in 17b002864216f3f5db4a7ccf10fffb154a99fe7b