]> git.lyx.org Git - features.git/commitdiff
initialize all vars
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 May 2003 20:51:38 +0000 (20:51 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 22 May 2003 20:51:38 +0000 (20:51 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7010 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/paragraph.C

index 541c85e90f5600e4c06636b646fc480cb3c22c56..03adbb5a699eae86ef748b9dbb80a9a30f5cbfdd 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-22  Lars Gullik Bjønnes  <larsbj@gullik.net>
+
+       * paragraph.C (Paragraph): initialize next_par_ and prev_par_
+
 2003-05-22  Angus Leeming  <leeming@lyx.org>
 
        * latexrunparams.h: new file containing struct LatexRunParams.
index 7662e1ebafa5967e860401f0f8aecfc2bcd77f2d..39767594626f01257c3fb9d2fd3e9b27cef4f56b 100644 (file)
@@ -73,6 +73,9 @@ Paragraph::Paragraph()
 #ifndef NO_NEXT
        next_ = 0;
        previous_ = 0;
+#else
+       next_par_ = 0;
+       prev_par_ = 0;
 #endif
        enumdepth = 0;
        itemdepth = 0;
@@ -88,6 +91,9 @@ Paragraph::Paragraph(Paragraph const & lp, bool same_ids)
 #ifndef NO_NEXT
        next_     = 0;
        previous_ = 0;
+#else
+       next_par_ = 0;
+       prev_par_ = 0;
 #endif
        // this is because of the dummy layout of the paragraphs that
        // follow footnotes