Skip to content

Commit 05fac95

Browse files
jisedlacthurka
authored andcommitted
GH-61 Fix pixels buffer size
1 parent 7417b74 commit 05fac95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

visualvm/charts/src/com/sun/tools/visualvm/charts/xy/XYPainter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ private int[][] getMinMaxPoints(XYItem item, Rectangle dirtyArea,
337337
double itemValueFactor = type == TYPE_RELATIVE ? getItemValueFactor(context,
338338
maxValueOffset, item.getBounds().height) : 0;
339339

340-
int maxPoints = Math.min(dirtyArea.width * 4, lastIndex - firstIndex + 1);
340+
int maxPoints = Math.min((lineWidth + dirtyArea.width + lineWidth) * 4, lastIndex - firstIndex + 1);
341341

342342
int[] xPoints = new int[maxPoints + 2];
343343
int[] yPoints = new int[maxPoints + 2];

0 commit comments

Comments
 (0)