2011-01-24 Miguel de Dios <miguel.dedios@artica.es>
* include/pChart/pChart.class: fixed in the function "drawTextBox" when pass a empty $Text as empty array. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
a1a1686893
commit
8dadb482c8
|
@ -1,3 +1,8 @@
|
|||
2011-01-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/pChart/pChart.class: fixed in the function "drawTextBox" when
|
||||
pass a empty $Text as empty array.
|
||||
|
||||
2011-01-24 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* operation/search_agents.php: fixed the pagination in the global search
|
||||
|
|
|
@ -1193,6 +1193,10 @@
|
|||
/* Draw a text box with text align & alpha properties */
|
||||
function drawTextBox($X1,$Y1,$X2,$Y2,$Text,$Angle=0,$R=255,$G=255,$B=255,$Align=ALIGN_LEFT,$Shadow=TRUE,$BgR=-1,$BgG=-1,$BgB=-1,$Alpha=100)
|
||||
{
|
||||
if (empty($Text)) {
|
||||
$Text = '';
|
||||
}
|
||||
|
||||
$Position = imageftbbox($this->FontSize,$Angle,$this->FontName,$Text);
|
||||
$TextWidth = $Position[2]-$Position[0];
|
||||
$TextHeight = $Position[5]-$Position[3];
|
||||
|
|
Loading…
Reference in New Issue