(svn r15953) -Fix [FS#2783]: left - right != width causing strings to be truncated too early

This commit is contained in:
rubidium 2009-04-04 10:59:14 +00:00
parent bdf05e797d
commit 171f98d523
1 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ static int DrawString(int left, int right, int top, char *str, const char *last,
int initial_right = right;
int initial_top = top;
if (truncate) TruncateString(str, right - left);
if (truncate) TruncateString(str, right - left + 1);
/*
* To support SETX and SETXY properly with RTL languages we have to