]> git.lyx.org Git - features.git/blobdiff - src/paragraph.C
Another clean-up patch from Angus
[features.git] / src / paragraph.C
index fddf45ae30db5bd074c72871c864a175a32b6a2b..8e4f7bad4669d7e8b4cf230f63d89ddb25bd9ad9 100644 (file)
@@ -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