From 809120bc05124847a0e33e069bbe0c09b995866e Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 26 Jun 2013 19:10:22 +0000 Subject: [PATCH] (svn r25477) -Fix: truncation didn't work because the string was truncated (or rather a newline was added) too early --- src/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx.cpp b/src/gfx.cpp index b42275da6c..da8215fec5 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -523,7 +523,7 @@ static int DrawLayoutLine(ParagraphLayout::Line *line, int y, int left, int righ */ int DrawString(int left, int right, int top, const char *str, TextColour colour, StringAlignment align, bool underline, FontSize fontsize) { - Layouter layout(str, right - left + 1, colour, fontsize); + Layouter layout(str, INT32_MAX, colour, fontsize); if (layout.Length() == 0) return 0; return DrawLayoutLine(*layout.Begin(), top, left, right, align, underline);