]> git.saurik.com Git - wxWidgets.git/commitdiff
wxListMainWindow::HitTest no longer tests 'flags' which is garbage
authorJulian Smart <julian@anthemion.co.uk>
Wed, 13 Sep 2000 09:35:43 +0000 (09:35 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 13 Sep 2000 09:35:43 +0000 (09:35 +0000)
at this point. HitTesting now working, hurrah!

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 8540ca21c1a6386bb232e99d7743236f00e68bf8..a1bc2cfdb4ee18cfa508dcf85eda6dcb99d859b9 100644 (file)
@@ -2966,7 +2966,7 @@ long wxListMainWindow::HitTest( int x, int y, int &flags )
     {
         wxListLineData *line = &m_lines[i];
         long ret = line->IsHit( x, y );
-        if (ret & flags)
+        if (ret) //  & flags) // No: flags is output-only so may be garbage at this point
         {
             flags = (int)ret;
             return count;