Don't arrange tabs if there is only one line.
This commit is contained in:
parent
83ecd5d964
commit
059a8c15f2
|
@ -1275,7 +1275,10 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
|
|||
infoPtr->uNumRows = curItemRowCount;
|
||||
|
||||
/* Arrange all tabs evenly if style says so */
|
||||
if (!(lStyle & TCS_RAGGEDRIGHT) && ((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) && (infoPtr->uNumItem > 0))
|
||||
if (!(lStyle & TCS_RAGGEDRIGHT) &&
|
||||
((lStyle & TCS_MULTILINE) || (lStyle & TCS_VERTICAL)) &&
|
||||
(infoPtr->uNumItem > 0) &&
|
||||
(infoPtr->uNumRows > 1))
|
||||
{
|
||||
INT tabPerRow,remTab,iRow;
|
||||
UINT iItm;
|
||||
|
|
Loading…
Reference in New Issue