Author: jpobst
Date: 2007-11-02 14:29:36 -0500 (Fri, 02 Nov 2007)
New Revision: 88741
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
Log:
2007-11-02 Jonathan Pobst <[EMAIL PROTECTED]>
* Picture.cs: Reset the data stream position back to 0 before trying
to convert it into an image. Fixes bug #325055.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/ChangeLog
2007-11-02 18:41:43 UTC (rev 88740)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/ChangeLog
2007-11-02 19:29:36 UTC (rev 88741)
@@ -1,3 +1,8 @@
+2007-11-02 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * Picture.cs: Reset the data stream position back to 0 before trying
+ to convert it into an image. Fixes bug #325055.
+
2007-08-17 Jeffrey Stedfast <[EMAIL PROTECTED]>
* RTF.cs (GetChar): Fixed c to be int instead of char (since we
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
2007-11-02 18:41:43 UTC (rev 88740)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/Picture.cs
2007-11-02 19:29:36 UTC (rev 88741)
@@ -141,6 +141,8 @@
public Image ToImage ()
{
+ // Reset the data stream position to the beginning
+ data.Position = 0;
return Image.FromStream (data);
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches