[libGD] #237 [Task opened] about gdImageStringFTEx()
[email protected] Fri, 10 Dec 2010 04:27:00 +0100 (CET)
| Newsgroups | php.gd.bugs |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - tzzhwj (tzzhwj)
Attached to Project - libGD
Summary - about gdImageStringFTEx()
Task Type - Bug Report
Category - Image Import/Export
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 2.0.35
Due in Version - Undecided
Due Date - Undecided
Details - I think
(
total_min.x -= METRIC_RES;
total_min.y -= METRIC_RES;
total_max.x += METRIC_RES;
total_max.y += METRIC_RES;
)
should be
(
int nLen = strlen(string);
if (!((0 == nLen) ||
(1 == nLen && ('\r' == string[0] || '\n' == string[0])) ||
(2 == nLen && (!strncmp(string, "\r\n", 2) || !strncmp(string, "\n\r", 2)))))
{
total_min.x -= METRIC_RES;
total_min.y -= METRIC_RES;
total_max.x += METRIC_RES;
total_max.y += METRIC_RES;
}
)
, or height and width of the image won't be zero when the string is only composed by '\r', '\n' or '\0'.
Is it right?
More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=237
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.