2009-04-09 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Thu, 9 Apr 2009 16:40:26 +0000 (16:40 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Thu, 9 Apr 2009 16:40:26 +0000 (16:40 -0000)
commit06a2bf67e1204c8dcfb4efb0574c51e208e48e00
tree738b7d67703cca2fd544677d78ecefed156e11a3
parent85fbebbc99cba95d85dabcb5e9c1214cdb0fda80
2009-04-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* CheckedListbox.cs: When executing OnItemClick check that the index
is different to -1 before trying to retrieve an item using that value.
Fixes a ArgumentOutOfRangeException thrown when the horizontal
scrollbar was visible but not needed, and then a clicked was received
on its area.

svn path=/trunk/mcs/; revision=131404
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/CheckedListBox.cs