From 77ece3939612fb0133d20815883e4ed50a10230e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 23 Jan 2014 20:05:16 +0000 Subject: fixes bug #188 completely git-svn-id: http://svn.miranda-ng.org/main/trunk@7842 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_rowtemplateopt.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/Clist_modern/src/modern_rowtemplateopt.cpp') diff --git a/plugins/Clist_modern/src/modern_rowtemplateopt.cpp b/plugins/Clist_modern/src/modern_rowtemplateopt.cpp index d6a9376d67..77e822d815 100644 --- a/plugins/Clist_modern/src/modern_rowtemplateopt.cpp +++ b/plugins/Clist_modern/src/modern_rowtemplateopt.cpp @@ -42,7 +42,7 @@ RECT da = {205,58,440, 130}; // Draw area void rowOptBuildTA(pROWCELL cell, pROWCELL* TA, int* i) { - if ( !cell) return; + if (!cell) return; TA[(*i)++] = cell; rowOptBuildTA(cell->child,TA, i); rowOptBuildTA(cell->next, TA, i); @@ -61,7 +61,7 @@ void rowOptShowSettings(HWND hwnd) TreeView_GetItem(GetDlgItem(hwnd, IDC_ROWTREE), &tvi); cell = (pROWCELL)tvi.lParam; - if ( !tvi.hItem) { + if (!tvi.hItem) { EnableWindow(GetDlgItem(hwnd,IDC_CONTTYPE) ,0); EnableWindow(GetDlgItem(hwnd,IDC_VALIGN),0); EnableWindow(GetDlgItem(hwnd,IDC_HALIGN) ,0); @@ -128,7 +128,7 @@ void rowOptShowSettings(HWND hwnd) void rowOptGenerateTreeView(pROWCELL cell, HTREEITEM node, HWND hwnd) { - if ( !cell) return; + if (!cell) return; TVINSERTSTRUCT tvis; tvis.hParent = node; @@ -167,7 +167,7 @@ void rowOptAddContainer(HWND htree, HTREEITEM hti) TVITEM tviparent; ROWCELL *cell = NULL; - if ( !hti) { + if (!hti) { if (TreeView_GetRoot(htree)) return; @@ -235,7 +235,7 @@ void rowOptDelContainer(HWND htree, HTREEITEM hti) HTREEITEM prnt = TreeView_GetParent(htree, hti); TVITEM tvi, tvpi; - if ( !hti) return; + if (!hti) return; // Get current tree item tvi.hItem = hti; @@ -281,7 +281,7 @@ void rowOptDelContainer(HWND htree, HTREEITEM hti) // Change icon at parent item - if ( !prnt || (prnt != prev)) return; + if (!prnt || (prnt != prev)) return; if ( TreeView_GetChild(htree, prnt)) { @@ -312,7 +312,7 @@ void RefreshTree(HWND hwndDlg,HTREEITEM hti) if (cell) { TCHAR buf[200] = {0}; - if ( !cell->child) + if (!cell->child) { if (cell->type == 0) mir_sntprintf(buf, SIZEOF(buf), TranslateT("Empty %s cell"), cell->cont == TC_COL?TranslateT("column"):TranslateT("line")); @@ -351,7 +351,7 @@ INT_PTR CALLBACK DlgTmplEditorOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM TranslateDialogDefault(hwndDlg); rowOptTmplStr = db_get_sa(NULL, "ModernData", "RowTemplate"); - if ( !rowOptTmplStr) + if (!rowOptTmplStr) rowOptTmplStr = mir_strdup(""); SendDlgItemMessage(hwndDlg,IDC_SPINCONTWIDTH, UDM_SETRANGE, 0, MAKELONG(999,0)); -- cgit v1.2.3