cvs: pear /Image_Graph/Graph/Plot Line.php /Image_Graph/Graph/Plot/Smoothed Line.php
| From: | Jesper Veggerby Hansen | Date: | Tue, 28 Feb 2006 22:30:49 +0000 |
| Subject: | cvs: pear /Image_Graph/Graph/Plot Line.php /Image_Graph/Graph/Plot/Smoothed Line.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38754@lists.php.net to get a copy of this message | ||
nosey Tue Feb 28 22:30:49 2006 UTC
Modified files:
/pear/Image_Graph/Graph/Plot Line.php
/pear/Image_Graph/Graph/Plot/Smoothed Line.php
Log:
Fixed Bug #6919 "Isolated points in linegraphs with breaks drawn incorrectly"
http://cvs.php.net/viewcvs.cgi/pear/Image_Graph/Graph/Plot/Line.php?r1=1.13&r2=1.14&diff_format=u
Index: pear/Image_Graph/Graph/Plot/Line.php
diff -u pear/Image_Graph/Graph/Plot/Line.php:1.13 pear/Image_Graph/Graph/Plot/Line.php:1.14
--- pear/Image_Graph/Graph/Plot/Line.php:1.13 Sun Nov 27 22:21:16 2005
+++ pear/Image_Graph/Graph/Plot/Line.php Tue Feb 28 22:30:49 2006
@@ -24,7 +24,7 @@
* @author Jesper Veggerby <pear.nosey@veggerby.dk>
* @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Line.php,v 1.13 2005/11/27 22:21:16 nosey Exp $
+ * @version CVS: $Id: Line.php,v 1.14 2006/02/28 22:30:49 nosey Exp $
* @link http://pear.php.net/package/Image_Graph
*/
@@ -134,6 +134,10 @@
$this->_getLineStyle($key);
$this->_canvas->polygon(array('connect' => false,
'map_vertices' => true));
}
+ else {
+ // ugly "visibility" override hack to avoid depending on new
Image_Canvas
+ $this->_canvas->_reset();
+ }
$numPoints = 0;
} else {
$p2['X'] = $this->_pointX($point);
@@ -152,6 +156,10 @@
$this->_getLineStyle($key);
$this->_canvas->polygon(array('connect' => false,
'map_vertices' => true));
}
+ else {
+ // ugly "visibility" override hack to avoid depending on new Image_Canvas
+ $this->_canvas->_reset();
+ }
}
unset($keys);
$this->_drawMarker();
http://cvs.php.net/viewcvs.cgi/pear/Image_Graph/Graph/Plot/Smoothed/Line.php?r1=1.12&r2=1.13&diff_format=u
Index: pear/Image_Graph/Graph/Plot/Smoothed/Line.php
diff -u pear/Image_Graph/Graph/Plot/Smoothed/Line.php:1.12
pear/Image_Graph/Graph/Plot/Smoothed/Line.php:1.13
--- pear/Image_Graph/Graph/Plot/Smoothed/Line.php:1.12 Sun Nov 27 22:21:17 2005
+++ pear/Image_Graph/Graph/Plot/Smoothed/Line.php Tue Feb 28 22:30:49 2006
@@ -24,7 +24,7 @@
* @author Jesper Veggerby <pear.nosey@veggerby.dk>
* @copyright Copyright (C) 2003, 2004 Jesper Veggerby Hansen
* @license http://www.gnu.org/copyleft/lesser.html LGPL
License 2.1
- * @version CVS: $Id: Line.php,v 1.12 2005/11/27 22:21:17 nosey Exp $
+ * @version CVS: $Id: Line.php,v 1.13 2006/02/28 22:30:49 nosey Exp $
* @link http://pear.php.net/package/Image_Graph
*/
@@ -106,6 +106,10 @@
$this->_getLineStyle($key);
$this->_canvas->polygon(array('connect' => false,
'map_vertices' => true));
}
+ else {
+ // ugly "visibility" override hack to avoid depending on new
Image_Canvas
+ $this->_canvas->_reset();
+ }
$numPoints = 0;
} else {
$p0 = $dataset->_nearby(-2);
@@ -154,6 +158,10 @@
$this->_getLineStyle();
$this->_canvas->polygon(array('connect' => false,
'map_vertices' => true));
}
+ else {
+ // ugly "visibility" override hack to avoid depending on new Image_Canvas
+ $this->_canvas->_reset();
+ }
}
unset($keys);
$this->_drawMarker();