Commit 942aa70a authored by Amine Khaldi's avatar Amine Khaldi Committed by Alexandre Julliard

comctl32: Don't draw text when the number of text lines has been set to zero.

parent 9483b3ba
......@@ -574,7 +574,7 @@ TOOLBAR_DrawString (const TOOLBAR_INFO *infoPtr, RECT *rcText, LPCWSTR lpText,
UINT state = tbcd->nmcd.uItemState;
/* draw text */
if (lpText) {
if (lpText && infoPtr->nMaxTextRows > 0) {
TRACE("string=%s rect=(%s)\n", debugstr_w(lpText),
wine_dbgstr_rect(rcText));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment