Change wxSVGFileDC to create unique clip/gradient IDs across multiple outputs (PR #26366)

15 views
Skip to first unread message

Blake-Madden

unread,
Apr 9, 2026, 9:14:49 AM (3 days ago) Apr 9
to wx-...@googlegroups.com, Subscribed

Instead of resetting IDs to zero with every wxSVGFileDC construction, have it remember the IDs that were already used.

This is useful if you need to combine multiple output SVGs. In my situation, I am ouputting many SVGs from different graph renderings, extracting the body from them, and then combining them into a larger SVG report. (Perhaps this is a use case for others as well.) With the current behaviour, the IDs for my clip rects are not always unique, which then causes rendering failures. This PR fixes this.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26366

Commit Summary

  • 7953d42 Change wxSVGFileDC to create unique clip/gradient IDs across multiple outputs

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26366@github.com>

VZ

unread,
Apr 9, 2026, 8:22:14 PM (2 days ago) Apr 9
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26366)

Thanks, will push soon.

BTW, one small thing: could you please use the blank line between the subject and the body in your commit messages, as it should be done (see the classic guidelines)? Otherwise I always have to edit them before pushing. TIA!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26366/c4218803609@github.com>

VZ

unread,
Apr 9, 2026, 8:24:02 PM (2 days ago) Apr 9
to wx-...@googlegroups.com, Subscribed

Closed #26366 via b226c77.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26366/issue_event/24357983127@github.com>

Reply all
Reply to author
Forward
0 new messages