Fix #6037: Account for x/y attributes in nested SVG bbox calculations

Closes #6037

Problem

The CLI --query-all command reports incorrect geometry for nested SVG elements with x/y attributes.

Solution

Override the bbox() method in SPRoot to apply x/y translation for nested SVG elements.

Testing

Tested with the example from the issue:

  • Before: svg1 reported as -19,-18,129,228 (incorrect negative coordinates)
  • After: svg1 reports correct positive coordinates
  • Nested svg2 and its children now correctly account for x="250" y="350" offset

Files Changed

  • src/object/sp-root.h - Added bbox() declaration
  • src/object/sp-root.cpp - Implemented bbox() override

Merge request reports

Loading