diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-08 14:35:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-08 14:35:33 +0000 |
commit | 6d22869470306be0c2fec2a6d344f6aaafc4b0af (patch) | |
tree | 23f7245a2e4eb1e3f58d68ca77a47f188b16e913 /plugins/TopToolBar/toolbar.cpp | |
parent | 610ba2b89a29f2766d232bea9157719de4b68928 (diff) |
fix for reading avatars
git-svn-id: http://svn.miranda-ng.org/main/trunk@849 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/toolbar.cpp')
-rw-r--r-- | plugins/TopToolBar/toolbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/TopToolBar/toolbar.cpp b/plugins/TopToolBar/toolbar.cpp index 70019d75b9..44d2e537b5 100644 --- a/plugins/TopToolBar/toolbar.cpp +++ b/plugins/TopToolBar/toolbar.cpp @@ -101,7 +101,7 @@ void LoadAllLButs() {
//must be locked
int cnt = DBGetContactSettingByte(0, TTB_OPTDIR, "LaunchCnt", 0);
- for (int i = 1; i<=cnt; i++)
+ for (int i = 0; i < cnt; i++)
InsertLBut(i);
}
@@ -120,7 +120,7 @@ void LoadAllSeparators() {
//must be locked
int cnt = DBGetContactSettingByte(0, TTB_OPTDIR, "SepCnt", 0);
- for (int i = 1; i<=cnt; i++)
+ for (int i = 0; i < cnt; i++)
InsertSeparator(i);
}
|