aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-08-06 21:23:53 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-08-06 21:24:01 -0700
commit709a029f87d0fd3d52f98a1a190cd70987d7d400 (patch)
treeb50f1ce6e7acc9afd4a165d2b37af73e07431644
parentc807ae7d8cbc6a4eace7d8c046f574b57a428d96 (diff)
Fixed behavior of htmlForAbstractMultipartAlternative()
-rw-r--r--src/core/renderer/MCHTMLRenderer.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/renderer/MCHTMLRenderer.cc b/src/core/renderer/MCHTMLRenderer.cc
index 8b561e71..8d0b4ecb 100644
--- a/src/core/renderer/MCHTMLRenderer.cc
+++ b/src/core/renderer/MCHTMLRenderer.cc
@@ -417,8 +417,13 @@ String * htmlForAbstractMultipartAlternative(AbstractMultipart * part, htmlRende
}
}
+ String * html = htmlForAbstractPart(preferredAlternative, context);
+ if (html == NULL) {
+ return NULL;
+ }
+
String * result = String::string();
- result->appendString(htmlForAbstractPart(preferredAlternative, context));
+ result->appendString(html);
if (calendar != NULL) {
result->appendString(htmlForAbstractPart(calendar, context));
}