aboutsummaryrefslogtreecommitdiffstats
path: root/src/body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 1980f261..7cd7d401 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -674,6 +674,13 @@ void body::setParentPart(ref <bodyPart> parent)
{
m_part = parent;
m_header = (parent != NULL ? parent->getHeader() : NULL);
+
+ for (std::vector <ref <bodyPart> >::iterator it = m_parts.begin() ;
+ it != m_parts.end() ; ++it)
+ {
+ ref <bodyPart> childPart = *it;
+ childPart->m_parent = parent;
+ }
}