Handle colours with alpha channel correctly in wxSVGFileDC.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2011 22:27:35 +0000 (22:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 7 Jun 2011 22:27:35 +0000 (22:27 +0000)
commit007d2de3c4635db3b321a07c13ddaa9f74728e2e
treefbe8c2c4e5bf7a941b40e512d90056ae348a0e9f
parent48dd005569224fac906b9a40fbf742783ee5513c
Handle colours with alpha channel correctly in wxSVGFileDC.

wxColour::GetAsString(wxC2S_HTML_SYNTAX) doesn't accept colours with alpha
channel as alpha is not representable in HTML syntax, so avoid calling this
function with such colours, remove the alpha component in the caller before
using it instead.

Also slightly simplify wxBrushString() and wxPenString() functions code in
wxSVGFileDC implementation.

Closes #13214.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/dcsvg.cpp