X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Frenderer%2FContactMapRenderer.java;h=af8838c4fa30d69bac093694eb3e8a149f69bf65;hb=f047ab25cc45bfc9d130f67d2c56a940751d9c91;hp=d1eb2f42c4090edc806bd71e68f5ecb881333787;hpb=985903ad810d9ef6ba0d09ff2b29d24e22c0708d;p=jalview.git diff --git a/src/jalview/renderer/ContactMapRenderer.java b/src/jalview/renderer/ContactMapRenderer.java index d1eb2f4..af8838c 100644 --- a/src/jalview/renderer/ContactMapRenderer.java +++ b/src/jalview/renderer/ContactMapRenderer.java @@ -178,14 +178,14 @@ public abstract class ContactMapRenderer implements AnnotationRowRendererI for (int ht = 0, botY = topY - _aa.height; ht < _aa.graphHeight; ht += cgeom.pixels_step) { - ContactGeometry.contactInterval ci = cgeom.mapFor(ht, - ht + cgeom.pixels_step); + ContactGeometry.contactInterval ci = cgeom.mapFor(ht); // cstart = (int) Math.floor(((double) y2 - ht) * contacts_per_pixel); // cend = (int) Math.min(contact_height, // Math.ceil(cstart + contacts_per_pixel * pixels_step)); Color col; - boolean rowsel = false, containsHidden = false; + boolean rowsel = false; + boolean containsHidden = false; if (columnSelection != null) { rowsel = cgeom.intersects(ci, columnSelection, hiddenColumns, @@ -226,7 +226,7 @@ public abstract class ContactMapRenderer implements AnnotationRowRendererI g.setColor(col); if (cgeom.pixels_step > 1) { - g.fillRect(x * charWidth, botY+ht, charWidth, 1 + cgeom.pixels_step); + g.fillRect(x * charWidth, botY+ht, charWidth, cgeom.pixels_step); } else {