Skip to content

Commit 1817622

Browse files
committed
fixed condition to determine no overlap
1 parent c9cb870 commit 1817622

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/visualisers/IsoPlot.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ void IsoPlot::isoline(MatrixHandler& data, BasicGraphicsObjectContainer& parent)
12061206
// If data range has no overlap with the level range, the levels loop below
12071207
// would produce a single artificial band [last_level, data_max] covering
12081208
// every grid point, causing O(N) polygon segment allocation for all N cells.
1209-
if (max <= (*levelSelection_).front() || min >= (*levelSelection_).back())
1209+
if (max < (*levelSelection_).front() || min > (*levelSelection_).back())
12101210
return;
12111211

12121212
if ((*levelSelection_).front() > min)

0 commit comments

Comments
 (0)