comparison 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
comparison
equal deleted inserted replaced
297:5414d3d582e4 298:caed245ea8a1
4845 tmpitem[z] = thisitem[z]; 4845 tmpitem[z] = thisitem[z];
4846 } 4846 }
4847 4847
4848 WinQueryClassName(item, 99, tmpbuf); 4848 WinQueryClassName(item, 99, tmpbuf);
4849 4849
4850 if(vsize && !height)
4851 height = 1;
4852 if(hsize && !width)
4853 width = 1;
4854
4850 if(strncmp(tmpbuf, "#1", 3)==0) 4855 if(strncmp(tmpbuf, "#1", 3)==0)
4851 tmpitem[thisbox->count].type = TYPEBOX; 4856 tmpitem[thisbox->count].type = TYPEBOX;
4852 else 4857 else
4853 tmpitem[thisbox->count].type = TYPEITEM; 4858 tmpitem[thisbox->count].type = TYPEITEM;
4854 4859
7426 { 7431 {
7427 tmpitem[z+1] = thisitem[z]; 7432 tmpitem[z+1] = thisitem[z];
7428 } 7433 }
7429 7434
7430 WinQueryClassName(item, 99, tmpbuf); 7435 WinQueryClassName(item, 99, tmpbuf);
7436
7437 if(vsize && !height)
7438 height = 1;
7439 if(hsize && !width)
7440 width = 1;
7431 7441
7432 if(strncmp(tmpbuf, "#1", 3)==0) 7442 if(strncmp(tmpbuf, "#1", 3)==0)
7433 tmpitem[0].type = TYPEBOX; 7443 tmpitem[0].type = TYPEBOX;
7434 else 7444 else
7435 tmpitem[0].type = TYPEITEM; 7445 tmpitem[0].type = TYPEITEM;