154 |
std::string fam_id; |
std::string fam_id; |
155 |
FamilyRecords_t::const_iterator fam_iter; |
FamilyRecords_t::const_iterator fam_iter; |
156 |
IndividualRecords_t::const_iterator child_iter; |
IndividualRecords_t::const_iterator child_iter; |
|
|
|
|
SpouseToFamilyLinks_t spouse_to_family_links = individu->getSpouseToFamilyLinks(); |
|
|
SpouseToFamilyLinks_t::const_iterator spouse_to_family_links_iter = spouse_to_family_links.begin(); |
|
|
|
|
157 |
bool found = false; |
bool found = false; |
158 |
|
|
159 |
while ((!found) && (spouse_to_family_links_iter != spouse_to_family_links.end())) |
if (individu != 0) |
160 |
{ |
{ |
161 |
fam_id = (*spouse_to_family_links_iter)->getFamsXref(); |
SpouseToFamilyLinks_t spouse_to_family_links = individu->getSpouseToFamilyLinks(); |
162 |
fam_iter = _family_records.find(fam_id); |
SpouseToFamilyLinks_t::const_iterator spouse_to_family_links_iter = spouse_to_family_links.begin(); |
163 |
if (fam_iter != _family_records.end()) |
while ((!found) && (spouse_to_family_links_iter != spouse_to_family_links.end())) |
164 |
{ |
{ |
165 |
if ((*fam_iter).second->getChilXrefs().size() > 0) |
fam_id = (*spouse_to_family_links_iter)->getFamsXref(); |
166 |
|
fam_iter = _family_records.find(fam_id); |
167 |
|
if (fam_iter != _family_records.end()) |
168 |
{ |
{ |
169 |
found = true; |
if ((*fam_iter).second->getChilXrefs().size() > 0) |
170 |
|
{ |
171 |
|
found = true; |
172 |
|
} |
173 |
} |
} |
174 |
|
spouse_to_family_links_iter++; |
175 |
} |
} |
|
spouse_to_family_links_iter++; |
|
176 |
} |
} |
177 |
return found; |
return found; |
178 |
} |
} |