[GB.QT4]
* 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:
parent
f841a413e7
commit
acf987283e
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue