Skip to content

Commit 7108bbc

Browse files
Fix out of bounds error.
1 parent b62c4d2 commit 7108bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plot.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ namespace ecolab
13341334
{
13351335
xp=x[pen][i];
13361336
yp=y[pen][i];
1337-
penLabel=penTextLabel[pen];
1337+
penLabel=pen<penTextLabel.size()? penTextLabel[pen]: "";
13381338
mousePen=pen;
13391339
mind=d;
13401340
}

0 commit comments

Comments
 (0)