From 7505e88db66798b2b8fcdff2d92a7136cd826b5b Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 9 Sep 2010 02:26:30 +0200 Subject: Upgrading to IUP 3.2 - and cleaning up. --- iup/src/iup_text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'iup/src/iup_text.c') diff --git a/iup/src/iup_text.c b/iup/src/iup_text.c index 6cd7235..d2e2e36 100755 --- a/iup/src/iup_text.c +++ b/iup/src/iup_text.c @@ -365,9 +365,9 @@ static void iTextComputeNaturalSizeMethod(Ihandle* ih, int *w, int *h, int *expa { int sb_size = iupdrvGetScrollbarSize(); if (ih->data->sb & IUP_SB_HORIZ) - natural_w += sb_size; + natural_h += sb_size; /* sb horizontal affects vertical size */ if (ih->data->sb & IUP_SB_VERT) - natural_h += sb_size; + natural_w += sb_size; /* sb vertical affects horizontal size */ } *w = natural_w; -- cgit v1.2.3