Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
297:5414d3d582e4 | 298:caed245ea8a1 |
---|---|
4687 tmpitem[z] = thisitem[z]; | 4687 tmpitem[z] = thisitem[z]; |
4688 } | 4688 } |
4689 | 4689 |
4690 GetClassName(item, tmpbuf, 99); | 4690 GetClassName(item, tmpbuf, 99); |
4691 | 4691 |
4692 if(vsize && !height) | |
4693 height = 1; | |
4694 if(hsize && !width) | |
4695 width = 1; | |
4696 | |
4692 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) | 4697 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) |
4693 tmpitem[thisbox->count].type = TYPEBOX; | 4698 tmpitem[thisbox->count].type = TYPEBOX; |
4694 else | 4699 else |
4695 tmpitem[thisbox->count].type = TYPEITEM; | 4700 tmpitem[thisbox->count].type = TYPEITEM; |
4696 | 4701 |
7384 tmpitem[z+1] = thisitem[z]; | 7389 tmpitem[z+1] = thisitem[z]; |
7385 } | 7390 } |
7386 | 7391 |
7387 GetClassName(item, tmpbuf, 99); | 7392 GetClassName(item, tmpbuf, 99); |
7388 | 7393 |
7394 if(vsize && !height) | |
7395 height = 1; | |
7396 if(hsize && !width) | |
7397 width = 1; | |
7398 | |
7389 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) | 7399 if(strnicmp(tmpbuf, FRAMECLASSNAME, 2)==0) |
7390 tmpitem[0].type = TYPEBOX; | 7400 tmpitem[0].type = TYPEBOX; |
7391 else | 7401 else |
7392 tmpitem[0].type = TYPEITEM; | 7402 tmpitem[0].type = TYPEITEM; |
7393 | 7403 |