45 |
|
|
46 |
void BakeryGateway::ViewIndividualRecord::save_to_document(void) |
void BakeryGateway::ViewIndividualRecord::save_to_document(void) |
47 |
{ |
{ |
48 |
if ((!_during_load) && (!_during_save)) |
if ((!_during_load) && (!_during_save) && (_entity != 0)) |
49 |
{ |
{ |
50 |
_during_save = true; |
_during_save = true; |
51 |
MMIIndividualRecord::enumSex mmi_sex = _mmi_individual_record->getSex(); |
MMIIndividualRecord::enumSex mmi_sex = _mmi_individual_record->getSex(); |
80 |
_during_load = true; |
_during_load = true; |
81 |
if (_local_document != get_document()) |
if (_local_document != get_document()) |
82 |
{ |
{ |
83 |
|
if (get_document()->getIndividualRecords().size() == 0) |
84 |
|
{ |
85 |
|
get_document()->addIndividualRecord(); |
86 |
|
} |
87 |
|
|
88 |
_local_document = get_document(); |
_local_document = get_document(); |
89 |
_individuals = get_document()->getIndividualRecords(); |
_individuals = get_document()->getIndividualRecords(); |
90 |
GEDCOMParser::IndividualRecords_t roots = get_document()->getRootIndividuals(); |
GEDCOMParser::IndividualRecords_t roots = get_document()->getRootIndividuals(); |