phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc/class.gdgraph.inc.php, 1.15


From: nomail
Subject: [Phpgroupware-cvs] phpgwapi/inc/class.gdgraph.inc.php, 1.15
Date: Wed, 2 Jun 2004 18:34:27 +0200

Update of /phpgwapi/inc
Modified Files:
        Branch: 
          class.gdgraph.inc.php

date: 2004/06/02 16:34:27;  author: ceb;  state: Exp;  lines: +4 -3

Log Message:
update
=====================================================================
Index: phpgwapi/inc/class.gdgraph.inc.php
diff -u phpgwapi/inc/class.gdgraph.inc.php:1.14 
phpgwapi/inc/class.gdgraph.inc.php:1.15
--- phpgwapi/inc/class.gdgraph.inc.php:1.14     Tue Jun  1 15:44:03 2004
+++ phpgwapi/inc/class.gdgraph.inc.php  Wed Jun  2 16:34:27 2004
@@ -736,15 +736,16 @@
                                $this->img->DrawText(array('text' => 
$ytext['title'],'justification' => 'left','margin_left' => $this->margin_left));
                                $space++;
 
-                               if($ytext['map'])
+                               if($ytext['use_map'])
                                {
                                        $this->img->SetColor(0,0,0);
                                        $map_start = 
(($this->img->GetFontWidth())*$strlen) + 10;
+                                       $map = '';
                                        $map = array($map_start,$y + 
2,$map_start + 10,$y + 12);
                                        $this->img->draw_rectangle($map);
 
                                        $gantt_map[] = array('project_id'       
=> $ytext['project_id'],
-                                                                               
                'map'   => $map[0] . ',' . $map[1] . ',' . $map[2] . ',' . 
$map[3]);
+                                                                               
        'img_map'       => $map);
                                }
                        }
                        }
@@ -789,7 +790,7 @@
                        $img_file = $this->img->save_img();
                        $this->img->Done();
                        return array('img_file' => $img_file,
-                                               'map'           => $gantt_map);
+                                               'img_map'       => $gantt_map);
                }
 
                function Open()




reply via email to

[Prev in Thread] Current Thread [Next in Thread]