From bca37ae018be18eb9beab2275f80d37befaf9873 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Wobst?= Date: Mon, 26 Apr 2004 17:54:33 +0000 Subject: [PATCH] fix insertion of a zero length path git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1714 069f4177-920e-0410-937b-c2a4a81bcd90 --- CHANGES | 6 ++++++ pyx/graph/style.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 638e7a16..44588392 100644 --- a/CHANGES +++ b/CHANGES @@ -109,6 +109,12 @@ TODO: - graph modules: - enum -> num renaming +0.6.3 (xxxx/xx/xx): + - graph module: + - fix drawing with background + - fix insertion of a zero length path when the whole line is outside + the valid axis range (reported by Marko Vendelin) + 0.6.2 (2004/04/07): - graph module: - fixed title=None + graph key issue reported by Gabriel Vasseur diff --git a/pyx/graph/style.py b/pyx/graph/style.py index 642ad352..98b65a45 100644 --- a/pyx/graph/style.py +++ b/pyx/graph/style.py @@ -477,7 +477,7 @@ class line(_style): def donedrawpoints(self, graph, styledata): self.addpointstopath(styledata) - if styledata.lineattrs is not None: + if styledata.lineattrs is not None and len(styledata.path.path): styledata.linecanvas.stroke(styledata.path, styledata.lineattrs) def drawpoint(self, graph, styledata): -- 2.11.4.GIT