Mercurial > dwindows
diff os2/dw.c @ 18:f1002d51d959
Fixed a container problem on OS/2 with separator set to 0.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 19 Jul 2001 00:28:54 +0000 |
parents | ca7a8215487a |
children | 38295c8d06d5 |
line wrap: on
line diff
--- a/os2/dw.c Wed Jul 18 22:32:45 2001 +0000 +++ b/os2/dw.c Thu Jul 19 00:28:54 2001 +0000 @@ -3716,9 +3716,9 @@ unsigned int dw_listbox_selected(HWND handle) { return (unsigned int)WinSendMsg(handle, - LM_QUERYSELECTION, - MPFROMSHORT(LIT_CURSOR), - 0); + LM_QUERYSELECTION, + MPFROMSHORT(LIT_CURSOR), + 0); } /* @@ -4164,7 +4164,7 @@ WinSendMsg(handle, CM_INSERTDETAILFIELDINFO, MPFROMP(first), MPFROMP(&detin)); - if(count > separator) + if(count > separator && separator > 0) { cnri.cb = sizeof(CNRINFO); cnri.pFieldInfoLast = left;