initialize all vars

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7010 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-22 20:51:38 +00:00
parent cfead52093
commit 5d573b3675
2 changed files with 10 additions and 0 deletions

View 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.

View 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