Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 13:31:41 +0000 (13:31 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 13:31:41 +0000 (13:31 +0000)
commit1d8cdcf2e39810b8e6128ac8a504cc206068f58c
treee37bff56f98990b78a4edae9970765d2d9e1a5b0
parentbbb8a1aad6778038b9e7bb9880d74f58e0a0bfe6
Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().

The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.

Just store the pen itself instead, this works in any case.

Closes #11235.

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