* BUG: Drawing text alignment is taken into account when the width or 
  height is specified, not only when both are. Now, the drawing text 
  methods behave like in gb.qt4.


git-svn-id: svn://localhost/gambas/trunk@5708 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2013-06-22 16:26:28 +00:00
parent 2973820c70
commit ecbdca325d

View File

@ -975,7 +975,7 @@ static void draw_text(GB_PAINT *d, bool rich, const char *text, int len, float w
if (align == GB_DRAW_ALIGN_DEFAULT)
align = ALIGN_TOP_NORMAL;
if (w > 0 && h > 0)
if (w > 0 || h > 0)
{
gt_layout_alignment(layout, w, h, &tw, &th, align, &offx, &offy);
if (rich)