]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
Dekel's patch -- I didn't fix the xforms-0.88 keysyms stuff so it still doesn't finis...
[lyx.git] / src / paragraph.C
index fddf45ae30db5bd074c72871c864a175a32b6a2b..2919ea2b7f6de58e3f0c78eadedd1ae160bb69e6 100644 (file)
@@ -731,7 +731,7 @@ void LyXParagraph::InsertInset(LyXParagraph::size_type pos,
 
 bool LyXParagraph::InsertInsetAllowed(Inset * inset)
 {
-       lyxerr << "LyXParagraph::InsertInsetAllowed" << endl;
+       //lyxerr << "LyXParagraph::InsertInsetAllowed" << endl;
        
        if (inset_owner)
                return inset_owner->InsertInsetAllowed(inset);
@@ -1651,8 +1651,10 @@ LyXParagraph * LyXParagraph::Clone() const
        result->inset_owner = inset_owner;
    
         // ale970302
-        result->bibkey = (bibkey) ? new InsetBibKey(bibkey): 0;
-               
+       if (bibkey)
+               result->bibkey = static_cast<InsetBibKey *>(bibkey->Clone());
+       else
+               result->bibkey = 0;
     
        // copy everything behind the break-position to the new paragraph