comctl32: Fix use of arithmetic operator on Boolean type in TREEVIEW_ComputeItemInternalMetrics.

Use a conditional operator to get the same result, but improving
readability of the code.
This commit is contained in:
Rob Shearman 2008-08-17 18:28:46 +01:00 committed by Alexandre Julliard
parent 602b58ba73
commit 6181419b64
1 changed files with 1 additions and 1 deletions

View File

@ -859,7 +859,7 @@ TREEVIEW_ComputeItemInternalMetrics(const TREEVIEW_INFO *infoPtr, TREEVIEW_ITEM
> TVS_LINESATROOT);
#endif
item->linesOffset = infoPtr->uIndent * (item->iLevel + lar - 1)
item->linesOffset = infoPtr->uIndent * (lar ? item->iLevel : item->iLevel - 1)
- infoPtr->scrollX;
item->stateOffset = item->linesOffset + infoPtr->uIndent;
item->imageOffset = item->stateOffset