/[ghosts]/ghosts/gedcomviewer/src/BakeryGateway/ViewIndividualRecord.cpp
ViewVC logotype

Diff of /ghosts/gedcomviewer/src/BakeryGateway/ViewIndividualRecord.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by cpcp, Fri Oct 4 13:43:59 2002 UTC revision 1.1.2.2 by cpcp, Sun Nov 3 18:38:30 2002 UTC
# Line 42  void BakeryGateway::ViewIndividualRecord Line 42  void BakeryGateway::ViewIndividualRecord
42      {      {
43        _local_document = get_document();        _local_document = get_document();
44        _individuals = get_document()->getIndividualRecords();        _individuals = get_document()->getIndividualRecords();
45        GEDCOMParser::IndividualRecords_t::const_iterator root =  (get_document()->getRootIndividuals()).begin();        GEDCOMParser::IndividualRecords_t roots = get_document()->getRootIndividuals();
46        std::string root_id = root->first;        GEDCOMParser::IndividualRecords_t::const_iterator root =  roots.begin();
47        _current_individu = _individuals.find(root_id);        if (root != roots.end())
48            {
49              std::string root_id = root->first;
50              _current_individu = _individuals.find(root_id);
51            }
52          else
53            {
54              _current_individu = _individuals.begin();
55            }
56        }
57      if (_current_individu != _individuals.end())
58        {
59          LoadCurrentIndividu();
60          notify_subscribees();
61      }      }
   LoadCurrentIndividu();  
   notify_subscribees();  
62    return;    return;
63  }  }
64    

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26