Extensions can't alter the viewbox in 1.3-dev
Summary:
Extensions no longer can change the document's viewbox via self.svg.set('viewBox', …)
.
Steps to reproduce:
Unzip the viewbox_bug.zip
file provided under Sample Attachments into your Inkscape extensions
directory. Then perform the following in each of Inkscape 1.1, 1.2, and 1.3-dev:
- Open Inkscape.
- Create some arbitrary content, say an ellipse that fills the page.
- Execute Extensions → Document → ViewBox Bug.
What happened?
- In Inkscape 1.1.2 (0a00cf53, 2022-02-04), the extension doubles all components of the viewbox, making the page content appear as half its previous size.
- In Inkscape 1.2.2 (b0a84865, 2022-12-01), the extension doubles all components of the viewbox, making the page content appear as half its previous size.
- In Inkscape 1.3-dev (767a45de, 2023-03-17), the extension does nothing.
What should have happened?
In Inkscape 1.3-dev, the extension should have doubled all components of the viewbox, making the page content appear as half its previous size.
Sample attachments:
Version info
Inkscape 1.3-dev (767a45d, 2023-03-17)
GLib version: 2.64.6
GTK version: 3.24.20
glibmm version: 2.64.2
gtkmm version: 3.24.2
libxml2 version: 2.9.10
libxslt version: 1.1.34
Cairo version: 1.17.7
Pango version: 1.44.7
HarfBuzz version: 2.6.4
OS version: Ubuntu 22.10
Edited by Scott Pakin