[evolution/webkit: 156/196] Fix rendering HTML-embedded attachments (images)



commit 2d22ae5768e6e361f803e1c27ada1cf900dff0e9
Author: Dan VrÃtil <dvratil redhat com>
Date:   Wed Feb 15 13:08:53 2012 +0100

    Fix rendering HTML-embedded attachments (images)

 mail/em-format-html-display.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 1adbea1..2c6c422 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -729,6 +729,15 @@ efhd_write_attachment (EMFormat *emf,
 
         EMFormatAttachmentPURI *efa = (EMFormatAttachmentPURI *) puri;
 
+        /* If the attachment is requested as RAW, then call the handler directly
+         * and do not append any other code. */
+        if ((info->mode == EM_FORMAT_WRITE_MODE_RAW) &&
+            efa->handle && efa->handle->write_func) {
+
+                efa->handle->write_func (emf, puri, stream, info, cancellable);
+                return;
+        }
+
         if (efa->handle)
                 mime_type = efa->handle->mime_type;
         else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]