Jelajahi Sumber

* RTF.cs: break when we finish loading the image data, otherwise
the parser gets confused if the image data is at the end of the
stream.


svn path=/trunk/mcs/; revision=73495

Jackson Harper 19 tahun lalu
induk
melakukan
8fd71ef6e0

+ 6 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/ChangeLog

@@ -1,3 +1,9 @@
+2007-02-27  Jackson Harper  <[email protected]>
+
+	* RTF.cs: break when we finish loading the image data, otherwise
+	the parser gets confused if the image data is at the end of the
+	stream.
+
 2007-02-23  Jackson Harper  <[email protected]>
 
 	* RTF.cs: Pull pict groups out of opt dests. Don't handle the pict

+ 2 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms.RTF/RTF.cs

@@ -903,7 +903,7 @@ SkipCRLF:
 		{
 			Minor image_type = Minor.Undefined;
 			bool read_image_data = false;
-			
+
 			while (true) {
 				rtf.GetToken ();
 
@@ -967,6 +967,7 @@ SkipCRLF:
 
 					read_image_data = false;
 					Image = (byte []) image_data.ToArray (typeof (byte));
+					break;
 				}
 			}