Amine Khaldi : comctl32: Don' t draw text when the number of text lines has been set to zero.
Alexandre Julliard
julliard at winehq.org
Mon Apr 25 12:47:14 CDT 2011
Module: wine
Branch: master
Commit: 942aa70a0e7b30ead40902987afc9b03f8da2360
URL: http://source.winehq.org/git/wine.git/?a=commit;h=942aa70a0e7b30ead40902987afc9b03f8da2360
Author: Amine Khaldi <amine.khaldi at reactos.org>
Date: Sun Apr 24 17:56:30 2011 +0100
comctl32: Don't draw text when the number of text lines has been set to zero.
---
dlls/comctl32/toolbar.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index 0b9dec2..c49b842 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -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));
More information about the wine-cvs
mailing list