From 7d2f6b4608e9eb29cfec5348332cc6721895c39f Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sun, 1 Mar 2020 22:12:03 +0100 Subject: [PATCH] Fix brush pattern when transparent pen is set in wxSVGFileDC Use the default stroke settings when defining the brush pattern. --- src/common/dcsvg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/dcsvg.cpp b/src/common/dcsvg.cpp index 6fa8108632..02b4a99d31 100644 --- a/src/common/dcsvg.cpp +++ b/src/common/dcsvg.cpp @@ -340,11 +340,12 @@ wxString CreateBrushFill(const wxBrush& brush, wxSVGShapeRenderingMode mode) } wxString brushColourStr = Col2SVG(brush.GetColour()); + wxString brushStrokeStr = wxS("stroke-width:1; stroke-linecap:round; stroke-linejoin:round;"); s += wxString::Format(wxS(" \n"), patternName, brushColourStr.substr(1)); - s += wxString::Format(wxS(" \n"), - brushColourStr, pattern, GetRenderMode(mode)); + s += wxString::Format(wxS(" \n"), + brushColourStr, brushStrokeStr, pattern, GetRenderMode(mode)); s += wxS(" \n"); }