If Moved() has been called, Clicked() can't be called anymore; this actually

fixes a crashing bug when dropping a column too fast.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22032 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-08-21 19:10:50 +00:00
parent 20c4c9e77e
commit f7deaad7ee
+1 -1
View File
@@ -543,7 +543,7 @@ ColumnTrackState::MouseUp(BPoint where)
{ {
// if it is pressed shortly and not moved, it is a click // if it is pressed shortly and not moved, it is a click
// all else is a track // all else is a track
if (system_time() <= fPastClickTime) if (system_time() <= fPastClickTime && !fHasMoved)
Clicked(where); Clicked(where);
else else
Done(where); Done(where);