]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed [ 652512 ] wxPaintDC::FindInCache bug
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 Dec 2002 23:21:17 +0000 (23:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 Dec 2002 23:21:17 +0000 (23:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dcclient.cpp

index 720398ea5dd5bad42cd11ecdb532a092f13cf192..687253ddc8cbae3de9807e72144b826e00828295 100644 (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;