]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed crash introduced in v1.41
authorDavid Surovell <davids@osafoundation.org>
Sat, 14 Jan 2006 08:49:42 +0000 (08:49 +0000)
committerDavid Surovell <davids@osafoundation.org>
Sat, 14 Jan 2006 08:49:42 +0000 (08:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dnd.cpp

index ff60f3d46e21d2c4d35ea424d578cda92063980d..dac1bb95ef290a96beb48c865da86033d509b55a 100644 (file)
@@ -602,7 +602,7 @@ pascal OSErr wxMacWindowDragTrackingHandler(
                 }
 
                 // set cursor for OnEnter and OnDragOver
-                if ( !trackingGlobals->m_currentSource && trackingGlobals->m_currentSource->GiveFeedback( result ) )
+                if ( trackingGlobals->m_currentSource && !trackingGlobals->m_currentSource->GiveFeedback( result ) )
                 {
                   if ( !trackingGlobals->m_currentSource->MacInstallDefaultCursor( result ) )
                   {