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



commit c64ac08d78da79141fae61d7f3987f9e8df23aab
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]