aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-format-html-display.c
diff options
context:
space:
mode:
authorSuman Manjunath <msuman@src.gnome.org>2008-09-01 12:27:02 +0800
committerSuman Manjunath <msuman@src.gnome.org>2008-09-01 12:27:02 +0800
commitb52cf4cc095e7165f2509a6b091ba07781047350 (patch)
tree5ec00fafe8f950a5dac1e085b55bf70c7ca06373 /mail/em-format-html-display.c
parente9d9c8fcba120d2145617363f13945f494d9575d (diff)
downloadgsoc2013-evolution-b52cf4cc095e7165f2509a6b091ba07781047350.tar.gz
gsoc2013-evolution-b52cf4cc095e7165f2509a6b091ba07781047350.tar.zst
gsoc2013-evolution-b52cf4cc095e7165f2509a6b091ba07781047350.zip
Milan Crha <mcrha@redhat.com> ** Fix for bug #543135 (Write error message to the right stream, do not try to set information message to the message list when it's not visible).
svn path=/trunk/; revision=36240
Diffstat (limited to 'mail/em-format-html-display.c')
-rw-r--r--mail/em-format-html-display.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 199ff19b67..3985b96ec7 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -2446,7 +2446,12 @@ efhd_format_optional(EMFormat *emf, CamelStream *fstream, CamelMimePart *part, C
{
char *classid, *html;
struct _attach_puri *info;
- CamelStream *stream = ((CamelStreamFilter *) fstream)->source;
+ CamelStream *stream;
+
+ if (CAMEL_IS_STREAM_FILTER (fstream) && ((CamelStreamFilter *) fstream)->source)
+ stream = ((CamelStreamFilter *) fstream)->source;
+ else
+ stream = fstream;
classid = g_strdup_printf("optional%s", emf->part_id->str);
info = (struct _attach_puri *)em_format_add_puri(emf, sizeof(*info), classid, part, efhd_attachment_frame);