Fixed [ 652512 ] wxPaintDC::FindInCache bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-12-17 23:21:17 +00:00
parent 09a2fd9ce2
commit 45fb821840

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;