From 5dec14aae90a4ea4f16a6e2b57d52375599b90c0 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sun, 23 Dec 2012 19:32:57 +0000 Subject: - Ieview: noavatar.png added git-svn-id: http://svn.miranda-ng.org/main/trunk@2818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/TemplateHTMLBuilder.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/plugins/IEView/src/TemplateHTMLBuilder.cpp b/plugins/IEView/src/TemplateHTMLBuilder.cpp index c28831bb8a..a4356760a3 100644 --- a/plugins/IEView/src/TemplateHTMLBuilder.cpp +++ b/plugins/IEView/src/TemplateHTMLBuilder.cpp @@ -198,8 +198,13 @@ void TemplateHTMLBuilder::buildHeadTemplate(IEView *view, IEVIEWEVENT *event, Pr szNameOut = Utils::dupString(" "); szNameIn = Utils::dupString(" "); } - sprintf(tempStr, "%snoavatar.jpg", tempBase); - szNoAvatar = Utils::UTF8Encode(tempStr); + sprintf(tempStr, "%snoavatar.png", tempBase); + szNoAvatar = Utils::UTF8Encode(tempStr); + if (access(szNoAvatar, 0) != -1) + { + sprintf(tempStr, "%snoavatar.jpg", tempBase); + szNoAvatar = Utils::UTF8Encode(tempStr); + } szAvatarIn = getAvatar(event->hContact, szRealProto); if (szAvatarIn == NULL) { szAvatarIn = Utils::dupString(szNoAvatar); @@ -369,8 +374,13 @@ void TemplateHTMLBuilder::appendEventTemplate(IEView *view, IEVIEWEVENT *event, szNameOut = Utils::dupString(" "); szNameIn = Utils::dupString(" "); } - sprintf(tempStr, "%snoavatar.jpg", tempBase); - szNoAvatar = Utils::UTF8Encode(tempStr); + sprintf(tempStr, "%snoavatar.png", tempBase); + szNoAvatar = Utils::UTF8Encode(tempStr); + if (access(szNoAvatar, 0) != -1) + { + sprintf(tempStr, "%snoavatar.jpg", tempBase); + szNoAvatar = Utils::UTF8Encode(tempStr); + } if(event->hContact != NULL) { szAvatarIn = getAvatar(event->hContact, szRealProto); -- cgit v1.2.3