diff options
author | 2014-08-06 21:23:53 -0700 | |
---|---|---|
committer | 2014-08-06 21:24:01 -0700 | |
commit | 709a029f87d0fd3d52f98a1a190cd70987d7d400 (patch) | |
tree | b50f1ce6e7acc9afd4a165d2b37af73e07431644 | |
parent | c807ae7d8cbc6a4eace7d8c046f574b57a428d96 (diff) |
Fixed behavior of htmlForAbstractMultipartAlternative()
-rw-r--r-- | src/core/renderer/MCHTMLRenderer.cc | 7 |
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)); } |