dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
familia.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automatically set parent family in individual, when adding child to the family.
[familia.git]
/
src
/
storage
/
family.c
diff --git
a/src/storage/family.c
b/src/storage/family.c
index 99353f1424bb60c8fe84efa5ba97e94c56d350e3..1508cd929446ebc4f0fb9ec87114c6945586d82d 100644
(file)
--- a/
src/storage/family.c
+++ b/
src/storage/family.c
@@
-1,6
+1,7
@@
#include <stdlib.h>
#include "family.h"
#include <stdlib.h>
#include "family.h"
+#include "individual.h"
#include "../debug.h"
#include "../debug.h"
@@
-97,6
+98,7
@@
void familia_family_add_child(struct familia_family * family, struct familia_ind
family->children = tmp;
family->children[family->children_no] = individual;
family->children_no++;
family->children = tmp;
family->children[family->children_no] = individual;
family->children_no++;
+ familia_individual_set_parents(individual, family);
}
else {
debug("There were problems with allocating memory for family children.\n");
}
else {
debug("There were problems with allocating memory for family children.\n");