Don't arrange tabs if there is only one line.

This commit is contained in:
Vitaliy Margolen 2005-10-03 18:46:07 +00:00 committed by Alexandre Julliard
parent 83ecd5d964
commit 059a8c15f2
1 changed files with 4 additions and 1 deletions

View File

@ -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;