Fix TypeError in replace_font.py

What does the merge request do?

Fixes a TypeError: 'NoneType' object is not iterable that happens when there are no text tags in the document.

Implementation notes

The first commit adds a test that triggers the error.

The second commit fix the test by removing a return statement and allowing the method to continue a return an empty list.

Summary for release notes

Fix error in Test > Replace Font extension when working on documents without text tags

Checklist

  • Add unit tests (if applicable)
  • Changes to inkex/ are well documented
  • Clean merge request history

Merge request reports

Loading