Author: gonzalo
Date: 2006-06-01 19:21:10 -0400 (Thu, 01 Jun 2006)
New Revision: 61393
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
Log:
2006-06-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* FileDialog.cs: fix crash when running SharpChess, which sets the
FilterIndex to 2 with only one Filter.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-01 22:53:03 UTC (rev 61392)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-06-01 23:21:10 UTC (rev 61393)
@@ -1,5 +1,10 @@
2006-06-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+ * FileDialog.cs: fix crash when running SharpChess, which sets the
+ FilterIndex to 2 with only one Filter.
+
+2006-06-01 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
* ToolBar.cs: add SizeSpecified property.
* ToolBarButton.cs: when the ButtonSize is calculated by the container,
try to figure out our real size, otherwise fallback to what the
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-06-01 22:53:03 UTC (rev 61392)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FileDialog.cs
2006-06-01 23:21:10 UTC (rev 61393)
@@ -685,6 +685,9 @@
private void SelectFilter ()
{
+ if (FilterIndex > mwfFileView.FilterArrayList.Count)
+ return;
+
do_not_call_OnSelectedIndexChangedFileTypeComboBox =
true;
fileTypeComboBox.BeginUpdate ();
fileTypeComboBox.SelectedIndex = FilterIndex - 1;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches