ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gffread/gffread.cpp
(Generate patch)
# Line 602 | Line 602
602    if (reftbl.Count()>0) {
603          GStr refname(gffrec->getRefName());
604          RefTran* rt=reftbl.Find(refname.chars());
605 <        if (rt==NULL && refname[-2]=='.' && isdigit(refname[-1])) {
605 >        if (rt==NULL && refname.length()>2 && refname[-2]=='.' && isdigit(refname[-1])) {
606             //try removing the version
607             refname.cut(-2);
608             //GMessage("[DEBUG] Trying ref name '%s'...\n", refname.chars());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines