Changeset 1702


Ignore:
Timestamp:
2000-11-27T10:50:12+13:00 (23 years ago)
Author:
annetteb
Message:

Bug fix for when offset values are read in from GDBM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/browsefilter.cpp

    r1285 r1702  
    207207        }
    208208          // insert the last result in the set
    209           if (!offsettext.empty()) offset_resultset.push_back (offsettext);
     209          if (offsettext.empty())
     210        {
     211          offset_resultset.push_back ("0");
     212        }
     213          else
     214        {
     215          offset_resultset.push_back (offsettext);
     216        }
    210217        }
    211218      else
     
    249256        intersect (resultset, request.docSet);
    250257      }
     258
     259      // add 0 offset for each 'contains' entry
     260      text_tarray::iterator result_here = resultset.begin();
     261      text_tarray::iterator result_end = resultset.end();
     262      while (result_here != result_end) {
     263        offset_resultset.push_back("0");
     264        result_here++;
     265      }
    251266    }
    252267
Note: See TracChangeset for help on using the changeset viewer.