Mercurial > dwindows
diff os2/dw.c @ 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 | 315812516608 |
children | 4559a2fd2db2 |
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