Mercurial > dwindows
comparison os2/dw.c @ 1409:93eb987c05cf
Same basic groupbox fix for OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 01 Dec 2011 09:04:09 +0000 |
parents | 2f10480d2c8a |
children | 22ba64e357de |
comparison
equal
deleted
inserted
replaced
1408:96460bd4c679 | 1409:93eb987c05cf |
---|---|
1058 | 1058 |
1059 if(thisbox->grouphwnd) | 1059 if(thisbox->grouphwnd) |
1060 { | 1060 { |
1061 char *text = dw_window_get_text(thisbox->grouphwnd); | 1061 char *text = dw_window_get_text(thisbox->grouphwnd); |
1062 | 1062 |
1063 thisbox->grouppady = 0; | 1063 thisbox->grouppady = 9; |
1064 | 1064 |
1065 if(text) | 1065 if(text) |
1066 { | 1066 { |
1067 dw_font_text_extents_get(thisbox->grouphwnd, 0, text, NULL, &thisbox->grouppady); | 1067 if(*text) |
1068 dw_font_text_extents_get(thisbox->grouphwnd, 0, text, NULL, &thisbox->grouppady); | |
1068 dw_free(text); | 1069 dw_free(text); |
1069 } | 1070 } |
1071 /* If the string height is less than 9... | |
1072 * set it to 9 anyway since that is the minimum. | |
1073 */ | |
1074 if(thisbox->grouppady < 9) | |
1075 thisbox->grouppady = 9; | |
1070 | 1076 |
1071 if(thisbox->grouppady) | 1077 if(thisbox->grouppady) |
1072 thisbox->grouppady += 3; | 1078 thisbox->grouppady += 3; |
1073 else | 1079 else |
1074 thisbox->grouppady = 6; | 1080 thisbox->grouppady = 6; |