@@ -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
@@ -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;
}