When porting wxWidgets to GTK4 Claude reckons to have found 6 bugs in wxWidgets that hinder samples, example applications or tests from working. To me as a casual outsider the patches look like actually resolving existing bugs. I currently push them as separate pull requests so they can be individually reviewed.
wxHtmlPrintout::RenderPage() renders the body first and then the header and footer through m_RendererHdr, calling
m_RendererHdr.Render(x, y);
which leaves wxHtmlDCRenderer::Render()'s "to" parameter at its INT_MAX default. The header is therefore free to draw the full height of its HTML, not just the header area -- and an HTML background colour drawn by the header covers the body that was rendered underneath it.
Pass the header and footer heights, which RenderPage() already knows, as the bound.
The test renders a page with a body background colour and a header into a wxMemoryDC and checks that a pixel well inside the body still has the body's colour.
(cherry picked from commit 7775a75)
https://github.com/wxWidgets/wxWidgets/pull/26915
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
This looks good to me too, so I'll merge it soon, thanks.
Please don't use "cherry picked from private commit", this is not useful.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()