]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/scroll/scroll.cpp
May as well also add a GTK_CLASS_TYPE macro for compatibility.
[wxWidgets.git] / samples / scroll / scroll.cpp
index c16f08b042562e65cc2ddd27c642428711c3d2b2..b190de4637455759b5dca805cc3c0bc9bc215818 100644 (file)
@@ -188,12 +188,9 @@ void MyCanvas::OnMouseDown( wxMouseEvent &event )
         int x,y;
         CalcUnscrolledPosition( pt.x, pt.y, &x, &y );
         wxLogMessage( "Mouse down event at: %d %d, scrolled: %d %d", pt.x, pt.y, x, y );
-    }
-    
-    if (event.LeftIsDown() &&
-        event.LeftDown())
-    {
-        wxLogMessage( "Error: both LeftDown() and LeftIsDown() are TRUE!" );
+
+        if ( !event.LeftIsDown() )
+            wxLogMessage( "Error: LeftIsDown() should be TRUE if for LeftDown()" );
     }
 }