summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/themes.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-30 07:19:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-30 07:19:31 +0000
commit48d2e7b444ca50e09e42a09078956839e922cb17 (patch)
treeca067c75f458c771fc7ab14f5e3b488fcd322279 /plugins/TabSRMM/src/themes.cpp
parent1a93578f19372a5bf33e5e62eb4048bb9ff86428 (diff)
- fix for the eternal loop in avatar drawing;
- code optimization & reordering git-svn-id: http://svn.miranda-ng.org/main/trunk@9986 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/themes.cpp')
-rw-r--r--plugins/TabSRMM/src/themes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/themes.cpp b/plugins/TabSRMM/src/themes.cpp
index f9d80db420..3937a842a9 100644
--- a/plugins/TabSRMM/src/themes.cpp
+++ b/plugins/TabSRMM/src/themes.cpp
@@ -1701,6 +1701,9 @@ void CSkin::setupAeroSkins()
M.getAeroState();
UnloadAeroTabs();
+ if (!m_fAeroSkinsValid)
+ return;
+
TCHAR tszFilename[MAX_PATH], tszBasePath[MAX_PATH];
_tcsncpy_s(tszBasePath, M.getDataPath(), _TRUNCATE);
if (tszBasePath[lstrlen(tszBasePath) - 1] != '\\')
@@ -1719,9 +1722,6 @@ void CSkin::setupAeroSkins()
}
}
- if (!m_fAeroSkinsValid)
- return;
-
mir_sntprintf(tszFilename, MAX_PATH, _T("%scustom_tabskin_aero.png"), tszBasePath);
if (!PathFileExists(tszFilename))
mir_sntprintf(tszFilename, MAX_PATH, _T("%stabskin_aero.png"), tszBasePath);