Avoid printing out a possibly uninitialized variable.
This commit is contained in:
parent
d148ca4e0a
commit
592a81ab22
@ -1079,7 +1079,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
|
|||||||
HFONT hFont, hOldFont;
|
HFONT hFont, hOldFont;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
RECT clientRect;
|
RECT clientRect;
|
||||||
SIZE size;
|
|
||||||
INT iTemp;
|
INT iTemp;
|
||||||
RECT* rcItem;
|
RECT* rcItem;
|
||||||
INT iIndex;
|
INT iIndex;
|
||||||
@ -1192,6 +1191,7 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
int tabwidth;
|
int tabwidth;
|
||||||
|
SIZE size;
|
||||||
/* Calculate how wide the tab is depending on the text it contains */
|
/* Calculate how wide the tab is depending on the text it contains */
|
||||||
GetTextExtentPoint32W(hdc, curr->pszText,
|
GetTextExtentPoint32W(hdc, curr->pszText,
|
||||||
lstrlenW(curr->pszText), &size);
|
lstrlenW(curr->pszText), &size);
|
||||||
@ -1231,7 +1231,6 @@ static void TAB_SetItemBounds (TAB_INFO *infoPtr)
|
|||||||
curr->rect.bottom = 0;
|
curr->rect.bottom = 0;
|
||||||
curr->rect.top = curItemRowCount - 1;
|
curr->rect.top = curItemRowCount - 1;
|
||||||
|
|
||||||
TRACE("TextSize: %li\n", size.cx);
|
|
||||||
TRACE("Rect: T %li, L %li, B %li, R %li\n", curr->rect.top,
|
TRACE("Rect: T %li, L %li, B %li, R %li\n", curr->rect.top,
|
||||||
curr->rect.left, curr->rect.bottom, curr->rect.right);
|
curr->rect.left, curr->rect.bottom, curr->rect.right);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user