From acf987283e837cbe7d7173ece710430ae6b65218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Wed, 29 Feb 2012 14:02:21 +0000 Subject: [PATCH] [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 --- gb.qt4/src/CDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.qt4/src/CDraw.cpp b/gb.qt4/src/CDraw.cpp index 0daf4a84d..9a8b46a2b 100644 --- a/gb.qt4/src/CDraw.cpp +++ b/gb.qt4/src/CDraw.cpp @@ -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(); }