Don't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 14:16:22 +0000 (14:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 14:16:22 +0000 (14:16 +0000)
commit584be856d1ad6da9f2f6855e2185fe9773f9df19
treef37bc2b16212153fd5dcc66bf64aeca1f518f938
parenta34ce03d63c10f555a63d593b257080fc070a26d
Don't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().

The variable "mode" is not filled by TranslateRasterOp() function if the input
function is not supported, so don't compare it with wxCOMPOSITION_XOR later.
Just compare "function" itself with wxXOR as this works in any case.

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