Do nothing in wxMemoryDC::SelectObject() if the bitmap is already selected.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:41:46 +0000 (22:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2010 22:41:46 +0000 (22:41 +0000)
commit71f5b0e7da72aa979bc9839fe42f1492988b7eb6
tree5501fcf5a3add6bb82b80151d5583376868c37d6
parent648c1af93dc6a654c03a1a5e4f7744411adc2110
Do nothing in wxMemoryDC::SelectObject() if the bitmap is already selected.

It doesn't make sense to make a copy of the bitmap in order to select it into
wxMemoryDC if it's already selected into it.

See #11640.

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