From: amwaterhouse Date: Wed, 15 Jun 2005 14:59:03 +0000 (+0000) Subject: allow for fastpaint X-Git-Tag: Release_2_0~27 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=759ed7e045bf7cf92373682b2392bf21d210d15c;p=jalview.git allow for fastpaint --- diff --git a/src/jalview/gui/FeatureRenderer.java b/src/jalview/gui/FeatureRenderer.java index e80d01a..1de32a5 100755 --- a/src/jalview/gui/FeatureRenderer.java +++ b/src/jalview/gui/FeatureRenderer.java @@ -58,10 +58,12 @@ public class FeatureRenderer if ( ( (fstart <= end) && (fend >= start))) { - if (fstart < 0) + if (fstart < start) { // fix for if the feature we have starts before the sequence start, - fstart = 0; // but the feature end is still valid!! + fstart = start; // but the feature end is still valid!! } + if(fend >=end) + fend = end; if (fstart == fend) {