]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph_pimpl.C
Fix fuer #209
[lyx.git] / src / paragraph_pimpl.C
index e3c85580603810e1917afc3d52eff0e01c76f6d8..ab9ba6d170a34ac7faba5461f7d2b9b6bcf8673e 100644 (file)
@@ -21,6 +21,8 @@
 #include "encoding.h"
 #include "lyxrc.h"
 #include "debug.h"
+#include "lyxtextclasslist.h"
+
 #include "support/LAssert.h"
 
 using lyx::pos_type;
@@ -150,6 +152,7 @@ void Paragraph::Pimpl::insertInset(pos_type pos,
                        "there is an inset in position: " << pos << std::endl;
        } else {
                owner_->insetlist.insert(it, InsetTable(pos, inset));
+               inset->parOwner(owner_);
        }
        
        if (inset_owner)