Author: calberto
Date: 2007-11-08 23:11:39 -0500 (Thu, 08 Nov 2007)
New Revision: 89299
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
Log:
2007-11-08 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* ListView.cs: In ItemControl, reset mouse-handling related
fields even if we dont' have items (we still should reset them when
we had items but then called Items.Clear). Partially based in a patch
by George Giolfan.
Fixes #338399.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-11-09 03:12:08 UTC (rev 89298)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-11-09 04:11:39 UTC (rev 89299)
@@ -1,3 +1,11 @@
+2007-11-08 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * ListView.cs: In ItemControl, reset mouse-handling related
+ fields even if we dont' have items (we still should reset them when
+ we had items but then called Items.Clear). Partially based in a patch
+ by George Giolfan.
+ Fixes #338399.
+
2007-11-08 Gert Driesen <[EMAIL PROTECTED]>
* Application.cs: In ProductVersion first try AssemblyFileVersion
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-11-09 03:12:08 UTC (rev 89298)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs
2007-11-09 04:11:39 UTC (rev 89299)
@@ -2566,6 +2566,7 @@
Capture = false;
if (owner.Items.Count == 0) {
+ ResetMouseState ();
owner.OnMouseUp (owner_me);
return;
}
@@ -2602,13 +2603,18 @@
owner.SelectedItems.Clear ();
}
+ ResetMouseState ();
+ owner.OnMouseUp (owner_me);
+ }
+
+ private void ResetMouseState ()
+ {
clicked_item = null;
box_select_start = Point.Empty;
BoxSelectRectangle = Rectangle.Empty;
prev_selection = null;
box_select_mode = BoxSelect.None;
checking = false;
- owner.OnMouseUp (owner_me);
}
private void LabelEditFinished (object sender,
EventArgs e)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches