From 759ed7e045bf7cf92373682b2392bf21d210d15c Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 15 Jun 2005 14:59:03 +0000 Subject: [PATCH] allow for fastpaint --- src/jalview/gui/FeatureRenderer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) { -- 1.7.10.2