diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-06 23:20:16 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-03-06 23:20:16 +0000 |
commit | 052236c2ce0e28176d18cfdf08ac258cbf7600a1 (patch) | |
tree | b780a7ddc14490d62b5d4fb214149f8d565e595d /plugins/Clist_modern/src/modern_statusbar.cpp | |
parent | de82d806160c060dcca20968a0c788695d4459ab (diff) |
Clist_modern:
- Minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12363 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_statusbar.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_statusbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_statusbar.cpp b/plugins/Clist_modern/src/modern_statusbar.cpp index dea40a5ba3..365b594c0a 100644 --- a/plugins/Clist_modern/src/modern_statusbar.cpp +++ b/plugins/Clist_modern/src/modern_statusbar.cpp @@ -399,7 +399,7 @@ int ModernDrawStatusBarWorker(HWND hWnd, HDC hDC) p.fullWidth = w;
if (g_StatusBarData.sameWidth) {
ProtoWidth[i] = sw;
- SumWidth += w;
+ SumWidth += sw;
}
else {
ProtoWidth[i] = w;
@@ -854,7 +854,7 @@ LRESULT CALLBACK ModernStatusProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa bool first = true;
for (int pos = 0; pos < protoCount; pos++) {
int i = pcli->pfnGetAccountIndexByPos(pos);
- if (i < 0 && i >= protoCount)
+ if (i < 0 || i >= protoCount)
continue;
char protoF[sizeof(g_CluiData.protoFilter)];
|