Exporting a selection yeilds erroneous viewBox
Summary:
I have a simple SVG image with a single object. I can load it and save it without problems. However, if I select the object, and check "Export Selected Only" on the Export tab, I get an SVG with extremely large dimensions.
Steps to reproduce:
- Start inkscape
- Open path18.svg
- Select the object
- Navigate to the Export tab
- Check "Export Selected Only"
- Choose "Plain SVG:" and export.
What happened?
The exported SVG has a very huge viewBox, see attachment path1.svg.
What should have happened?
The exported SVG should have the same viewBox as the original.
Sample attachments:
Version info
% inkscape --debug-info
Inkscape 1.4.2 (ebf0e940d0, 2025-05-08)
Compile (Run)
GLib version: 2.84.1
GTK version: 3.24.49 (3.24.49)
glibmm version: 2.66.8
gtkmm version: 3.24.10
libxml2 version: 2.12.10
libxslt version: 1.1.43
Cairo version: 1.18.2 (1.18.2)
Pango version: 1.56.3 (1.56.3)
HarfBuzz version: 10.4.0 (10.4.0)
OS version: Fedora Linux 42 (MATE-Compiz)