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:
parent
602b58ba73
commit
6181419b64
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue