ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/gff.cpp
(Generate patch)
# Line 731 | Line 731
731          int segend=exons[idx]->end;
732          exons.Delete(idx);
733          covlen -= (int)(segend-segstart)+1;
734 <        start=exons.First()->start;
735 <        end=exons.Last()->end;
736 <        if (isCDS) { CDstart=start; CDend=end; }
734 >
735 >        if (exons.Count() > 0) {
736 >          start=exons.First()->start;
737 >          end=exons.Last()->end;
738 >          if (isCDS) { CDstart=start; CDend=end; }
739 >        }
740          return;
741          }
742       }
# Line 935 | Line 938
938        if (strand && gfo.gffobj->strand!='.' && strand != gfo.gffobj->strand)
939             continue;
940        if (start>0) {
941 <           if (abs((int)start-(int)gfo.gffobj->start)>GFF_MAX_LOCUS)
941 >               if (abs((int)start-(int)gfo.gffobj->start)> (int)GFF_MAX_LOCUS)
942                 continue;
943             if (end>0 && (gfo.gffobj->start>end || gfo.gffobj->end<start))
944                     continue;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines