summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/ttbopt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-18 15:44:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-18 15:44:39 +0000
commitd055832390e754ec8f1063f068629f3891cf92a3 (patch)
tree1dc6d27d2740ac38b8eaccde0e3d11512bd7356b /plugins/TopToolBar/ttbopt.cpp
parentbeed04fd78481c085df5f0342ce546b3fdd2e544 (diff)
minor fixes for TTB
git-svn-id: http://svn.miranda-ng.org/main/trunk@474 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/ttbopt.cpp')
-rw-r--r--plugins/TopToolBar/ttbopt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TopToolBar/ttbopt.cpp b/plugins/TopToolBar/ttbopt.cpp
index 395a02f2d5..f7161fa6ca 100644
--- a/plugins/TopToolBar/ttbopt.cpp
+++ b/plugins/TopToolBar/ttbopt.cpp
@@ -45,7 +45,7 @@ int BuildTree(HWND hwndDlg)
tmp = mir_wstrdup(L"------------------");
index = -1;
}
- else if ( !(b.dwFlags & TTBBF_ISLBUTTON)) {
+ else {
tvis.item.mask = TVIF_PARAM | TVIF_TEXT | TVIF_STATE | TVIF_IMAGE | TVIF_SELECTEDIMAGE;
if (b.dwFlags & TTBBF_ICONBYHANDLE) {
HICON hIcon = Skin_GetIconByHandle(b.hIconHandleUp);
@@ -213,11 +213,11 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
btn = (TopButtonInt*)tvi.lParam;
if (btn->dwFlags & TTBBF_ISSEPARATOR) {
- DeleteSeparator(btn->wParamDown);
+ DeleteSeparator(btn->wParamDown);
TTBRemoveButton(btn->lParamDown, 0);
}
else if (btn->dwFlags & TTBBF_ISLBUTTON) {
- DeleteLBut(btn->wParamDown);
+ DeleteLBut(btn->wParamDown);
TTBRemoveButton(btn->lParamDown, 0);
}