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:
@@ -276,9 +276,10 @@ wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
|
|||||||
size_t nCache = ms_cache.GetCount();
|
size_t nCache = ms_cache.GetCount();
|
||||||
for ( size_t n = 0; n < nCache; n++ )
|
for ( size_t n = 0; n < nCache; n++ )
|
||||||
{
|
{
|
||||||
info = &ms_cache[n];
|
wxPaintDCInfo *info1 = &ms_cache[n];
|
||||||
if ( info->hwnd == m_canvas->GetHWND() )
|
if ( info1->hwnd == m_canvas->GetHWND() )
|
||||||
{
|
{
|
||||||
|
info = info1;
|
||||||
if ( index )
|
if ( index )
|
||||||
*index = n;
|
*index = n;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user