summaryrefslogtreecommitdiff
path: root/plugins/IEView/src
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-12-23 19:32:57 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-12-23 19:32:57 +0000
commit5dec14aae90a4ea4f16a6e2b57d52375599b90c0 (patch)
tree0615623afa8971752eb47538c59ca3c7842ea161 /plugins/IEView/src
parent67fd55d0af30663ecd910c7a366571549090c8e9 (diff)
- Ieview: noavatar.png added
git-svn-id: http://svn.miranda-ng.org/main/trunk@2818 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src')
-rw-r--r--plugins/IEView/src/TemplateHTMLBuilder.cpp18
1 files 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("&nbsp;");
szNameIn = Utils::dupString("&nbsp;");
}
- 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("&nbsp;");
szNameIn = Utils::dupString("&nbsp;");
}
- 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);