Mercurial > dwindows
changeset 276:dfbda83b7cad
Eliminate configure event callbacks when either the width or height is 0.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 06 Mar 2003 06:51:34 +0000 |
parents | b366518618d9 |
children | d706e0dbb0cb |
files | os2/dw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/os2/dw.c Wed Mar 05 21:19:05 2003 +0000 +++ b/os2/dw.c Thu Mar 06 06:51:34 2003 +0000 @@ -1978,7 +1978,7 @@ { int (* API sizefunc)(HWND, int, int, void *) = (int (* API)(HWND, int, int, void *))tmp->signalfunction; - if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd) + if((hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd) && SHORT1FROMMP(mp2) && SHORT2FROMMP(mp2)) { result = sizefunc(tmp->window, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), tmp->data); tmp = NULL;