* BUG: Fix Draw.RichTextWidth() by rounding the internal floating point 
  width up.


git-svn-id: svn://localhost/gambas/trunk@4518 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2012-02-29 14:02:21 +00:00
parent f841a413e7
commit acf987283e

View file

@ -964,7 +964,7 @@ static void rich_text_size(GB_DRAW *d, char *text, int len, int sw, int *w, int
if (sw > 0)
rt.setTextWidth(sw);
if (w) *w = rt.idealWidth();
if (w) *w = ceil(rt.idealWidth());
if (h) *h = rt.size().height();
}