diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c index 7572e583a6c..df4324508e2 100644 --- a/dlls/comctl32/tab.c +++ b/dlls/comctl32/tab.c @@ -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;