Fixed [ 652512 ] wxPaintDC::FindInCache bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2002-12-17 23:21:17 +00:00
parent cd501207cf
commit 968bed8c37

View File

@ -276,9 +276,10 @@ wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
size_t nCache = ms_cache.GetCount();
for ( size_t n = 0; n < nCache; n++ )
{
info = &ms_cache[n];
if ( info->hwnd == m_canvas->GetHWND() )
wxPaintDCInfo *info1 = &ms_cache[n];
if ( info1->hwnd == m_canvas->GetHWND() )
{
info = info1;
if ( index )
*index = n;
break;