This commit is contained in:
hneemann 2019-07-20 09:07:34 +02:00
parent 00cae2ff76
commit 56e045bfa1

View File

@ -164,11 +164,11 @@ public class DataPlotter implements Drawable {
if (width == 0) width = 1; if (width == 0) width = 1;
long value = s.getValue(i).getValue(); long value = s.getValue(i).getValue();
int ry; int ry;
if (Math.abs(width >>> 1) < Integer.MAX_VALUE) { long sWidth = (width >>> 32);
if (sWidth == 0) {
ry = (int) (SIZE - (SIZE * value) / width); ry = (int) (SIZE - (SIZE * value) / width);
} else { } else {
width = (width >>> 32); ry = (int) (SIZE - (SIZE * (value >>> 32)) / sWidth);
ry = (int) (SIZE - (SIZE * (value >>> 32)) / width);
} }
if (value != last[i].value) if (value != last[i].value)