changeset 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 f26eced21a30
children 3e5bff3e55ff
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
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;