aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Hoa V. Dinh <dvh@google.com>2013-05-09 19:31:33 -0700
committerGravatar Hoa V. Dinh <dvh@google.com>2013-05-09 19:31:33 -0700
commit177bf6b6ee038630d7a0e916f20377d0adb88025 (patch)
tree4853e2e09217d95733fa92fe5fa555ed6e792515 /src/core
parentf2e26b8eed7921acca29ccd32ceffe4647eb2df5 (diff)
Fixed attachments query
Diffstat (limited to 'src/core')
-rw-r--r--src/core/renderer/MCHTMLRenderer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/renderer/MCHTMLRenderer.cc b/src/core/renderer/MCHTMLRenderer.cc
index edcea796..0e52587f 100644
--- a/src/core/renderer/MCHTMLRenderer.cc
+++ b/src/core/renderer/MCHTMLRenderer.cc
@@ -173,8 +173,8 @@ static String * htmlForAbstractMessage(String * folder, AbstractMessage * messag
htmlRendererContext context;
context.dataCallback = dataCallback;
context.htmlCallback = htmlCallback;
- context.relatedAttachments = relatedAttachments;
- context.attachments = attachments;
+ context.relatedAttachments = NULL;
+ context.attachments = NULL;
context.firstRendered = 0;
context.folder = folder;
context.state = RENDER_STATE_NONE;
@@ -185,8 +185,8 @@ static String * htmlForAbstractMessage(String * folder, AbstractMessage * messag
context.hasTextPart = false;
htmlForAbstractPart(mainPart, &context);
- context.relatedAttachments = NULL;
- context.attachments = NULL;
+ context.relatedAttachments = relatedAttachments;
+ context.attachments = attachments;
context.hasMixedTextAndAttachments = (context.state == RENDER_STATE_HAD_ATTACHMENT_THEN_TEXT);
context.pass = 1;
context.firstAttachment = false;