Mercurial > dwindows
diff win/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 | aac3ab26d636 |
children | 2a97f8d9b297 |
line wrap: on
line diff
--- 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