From 1c5d355ab1b9bbb70fa1b54e9fe36ba7bfaa9941 Mon Sep 17 00:00:00 2001 From: Charles Doutriaux Date: Thu, 9 Jun 2016 14:23:51 -0700 Subject: [PATCH] fix #1947 --- Packages/vcs/vcs/vcsvtk/pipeline2d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/vcs/vcs/vcsvtk/pipeline2d.py b/Packages/vcs/vcs/vcsvtk/pipeline2d.py index dc12f3f5cd..20e2713e67 100644 --- a/Packages/vcs/vcs/vcsvtk/pipeline2d.py +++ b/Packages/vcs/vcs/vcsvtk/pipeline2d.py @@ -230,11 +230,11 @@ def _prepContours(self): I = indices[i] O = opacities[i] else: - if l[0] == L[-1] and\ + if (l[0] == L[-1] and numpy.allclose(l[1]-l[0], L[-1]-L[-2])) and\ ((style == 'solid') or (I == indices[i] and C[-1] == self._contourColors[i] and O == opacities[i])): - # Ok same type lets keep going + # Ok same type and interval length lets keep going if numpy.allclose(l[1], 1.e20): L.append(self._scalarRange[1] + 1.) else: