Skip to content

Commit

Permalink
emergency bugfix for 100% CPU in image drawing
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Nov 2, 2014
1 parent 92007e5 commit fe8b1d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/net/yacy/visualization/ChartPlotter.java
Expand Up @@ -159,6 +159,7 @@ private void drawHorizontalScale(final boolean top, final int scale, final int p
private void drawVerticalScale(final boolean left, final int scale, final int pixelperscale, final int offset, final Long colorNaming, final Long colorScale, final String name) {
assert pixelperscale > 0;
assert scale > 0;
if (pixelperscale <= 0) return; // this would not meet the termination condition in the while loop
final int x = (left) ? this.leftborder : this.width - this.rightborder;
int y = this.height - this.bottomborder;
int s = offset;
Expand Down

0 comments on commit fe8b1d1

Please sign in to comment.