https://github.com/wxWidgets/wxWidgets/pull/26362
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz commented on this pull request.
Thanks, the other commits look good but I'd rather not apply the first one.
> @@ -204,7 +204,7 @@ wxString GetPenStyle(const wxPen& pen)
{
wxString penStyle;
- penStyle += wxString::Format(wxS("stroke-width=\"%d\""), pen.GetWidth());
+ penStyle += wxString::Format(wxS("stroke-width=\"%d\""), wxMax(0, pen.GetWidth()));
Sorry, I don't think this is the right place to do this. Negative pen widths are not allowed, we need to detect this in wxPen::SetWidth() and assert there, not allow silently using them as invisible pens.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden commented on this pull request.
> @@ -204,7 +204,7 @@ wxString GetPenStyle(const wxPen& pen)
{
wxString penStyle;
- penStyle += wxString::Format(wxS("stroke-width=\"%d\""), pen.GetWidth());
+ penStyle += wxString::Format(wxS("stroke-width=\"%d\""), wxMax(0, pen.GetWidth()));
OK, just rolled that one back.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@Blake-Madden pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()