changeset 298:caed245ea8a1

Sanity check, if expand is set width/height can't be zero... force it to 1.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 27 Mar 2003 07:49:57 +0000
parents 5414d3d582e4
children 2a97f8d9b297
files os2/dw.c win/dw.c
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Thu Mar 27 07:05:56 2003 +0000
+++ b/os2/dw.c	Thu Mar 27 07:49:57 2003 +0000
@@ -4847,6 +4847,11 @@
 
 		WinQueryClassName(item, 99, tmpbuf);
 
+		if(vsize && !height)
+			height = 1;
+		if(hsize && !width)
+			width = 1;
+
 		if(strncmp(tmpbuf, "#1", 3)==0)
 			tmpitem[thisbox->count].type = TYPEBOX;
 		else
@@ -7429,6 +7434,11 @@
 
 		WinQueryClassName(item, 99, tmpbuf);
 
+		if(vsize && !height)
+			height = 1;
+		if(hsize && !width)
+			width = 1;
+
 		if(strncmp(tmpbuf, "#1", 3)==0)
 			tmpitem[0].type = TYPEBOX;
 		else
--- a/win/dw.c	Thu Mar 27 07:05:56 2003 +0000
+++ b/win/dw.c	Thu Mar 27 07:49:57 2003 +0000
@@ -4689,6 +4689,11 @@
 
 		GetClassName(item, tmpbuf, 99);
 
+		if(vsize && !height)
+			height = 1;
+		if(hsize && !width)
+			width = 1;
+
 		if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0)
 			tmpitem[thisbox->count].type = TYPEBOX;
 		else
@@ -7386,6 +7391,11 @@
 
 		GetClassName(item, tmpbuf, 99);
 
+		if(vsize && !height)
+			height = 1;
+		if(hsize && !width)
+			width = 1;
+
 		if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0)
 			tmpitem[0].type = TYPEBOX;
 		else