Rsize page to content should respect geometric bounding box preference
Summary:
When clicking the option in the document settings to "Resize page to drawing or selection" the resize should respect the preference of visual or geometric bounding boxes. Currently even when geometric bounding is used, this feature will resize to include stroke width.
... (write here)
Steps to reproduce:
Start a new document in Inkscape Set preference to "geometric bounding box" Draw a 1-inch square with a wide stroke In documents settings, click on "Resize page to drawing or selection" The resulting page size will exceed 1 inch.
What happened?
The resulting page size will exceed 1 inch. The resulting custom size will be larger than the geometric path size
...
What should have happened?
The custom size should have matched the size of the content without regard to the stroke width. In this case 1"x1"
Why this matters
When using the file as input to other vector programs that require precise sizing, the page size may be used to scale the paths contained in the file. If the page size ("height" and "width") are incorrectly including stroke width when they shouldn't, the scaling is incorrect.
Sample attachments:
A small example file is attached, along with an image showing the problem
Version Info:
Inkscape Version: 1.0.2 (e86c870879, 2021-01-15)
Windows 10 Version 10.0.19042 Build 19042
