Module: wine Branch: refs/heads/master Commit: a2f883484f11f291d965ba543ec03a9626db943a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a2f883484f11f291d965ba54...
Author: Phil Krylov phil@newstar.rinet.ru Date: Mon Jan 9 18:41:33 2006 +0100
user: Fix dropdown combo creation when there is no space for an edit control.
---
dlls/user/combo.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/user/combo.c b/dlls/user/combo.c index 4fab7f3..12d3121 100644 --- a/dlls/user/combo.c +++ b/dlls/user/combo.c @@ -435,6 +435,10 @@ static void CBCalcPlacement( lprLB->right = lprLB->left + lphc->droppedWidth; }
+ /* don't allow negative window width */ + if (lprEdit->right < lprEdit->left) + lprEdit->right = lprEdit->left; + TRACE("\ttext\t= (%ld,%ld-%ld,%ld)\n", lprEdit->left, lprEdit->top, lprEdit->right, lprEdit->bottom);