# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1048751397 0 # Node ID caed245ea8a14fc57d357fee69c2522398303ef9 # Parent 5414d3d582e4f000a1542f63ed1efbf035bab610 Sanity check, if expand is set width/height can't be zero... force it to 1. diff -r 5414d3d582e4 -r caed245ea8a1 os2/dw.c --- 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 diff -r 5414d3d582e4 -r caed245ea8a1 win/dw.c --- 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