summaryrefslogtreecommitdiff
path: root/iup/src/iup_hbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src/iup_hbox.c')
-rwxr-xr-xiup/src/iup_hbox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/iup/src/iup_hbox.c b/iup/src/iup_hbox.c
index a8a93a3..aaa8e4d 100755
--- a/iup/src/iup_hbox.c
+++ b/iup/src/iup_hbox.c
@@ -213,12 +213,12 @@ static void iHboxSetChildrenCurrentSizeMethod(Ihandle* ih, int shrink)
else
{
int empty = (child->expand & IUP_EXPAND_W1)? empty_w1: ((child->expand & IUP_EXPAND_W0)? empty_w0: 0);
- char* weigth_str = iupAttribGet(child, "EXPANDWEIGTH");
- if (weigth_str)
+ char* weight_str = iupAttribGet(child, "EXPANDWEIGHT");
+ if (weight_str)
{
- float weigth;
- if (iupStrToFloat(weigth_str, &weigth))
- empty = iupROUND(empty * weigth);
+ float weight;
+ if (iupStrToFloat(weight_str, &weight))
+ empty = iupROUND(empty * weight);
}
iupBaseSetCurrentSize(child, child->naturalwidth+empty, client_height, shrink);
}