]> git.lyx.org Git - lyx.git/blobdiff - src/paragraph.C
ws changes only
[lyx.git] / src / paragraph.C
index e8a0827ba1f1f8b4df0d32b641e1b5f69d55d870..b53949fd30a8556f4d3ec3aee142d3bd0dee2f32 100644 (file)
@@ -46,7 +46,7 @@ using lyx::support::contains;
 using lyx::support::subst;
 
 using std::endl;
-
+using std::string;
 using std::ostream;
 using std::ostringstream;
 
@@ -54,7 +54,6 @@ using std::ostringstream;
 Paragraph::Paragraph()
        : y(0), pimpl_(new Paragraph::Pimpl(this))
 {
-       enumdepth = 0;
        itemdepth = 0;
        params().clear();
 }
@@ -63,7 +62,6 @@ Paragraph::Paragraph()
 Paragraph::Paragraph(Paragraph const & lp)
        : y(0), text_(lp.text_), pimpl_(new Paragraph::Pimpl(*lp.pimpl_, this))
 {
-       enumdepth = 0;
        itemdepth = 0;
        // this is because of the dummy layout of the paragraphs that
        // follow footnotes
@@ -93,7 +91,6 @@ void Paragraph::operator=(Paragraph const & lp)
        delete pimpl_;
        pimpl_ = new Pimpl(*lp.pimpl_, this);
 
-       enumdepth = lp.enumdepth;
        itemdepth = lp.itemdepth;
        // this is because of the dummy layout of the paragraphs that
        // follow footnotes
@@ -726,7 +723,7 @@ string const corrected_env(string const & suffix, string const & env,
                output += env;
        return output + "}";
 }
+
 } // namespace anon
 
 
@@ -871,7 +868,7 @@ bool Paragraph::simpleTeXOnePar(Buffer const & buf,
        LyXLayout_ptr style;
 
        // well we have to check if we are in an inset with unlimited
-       // lenght (all in one row) if that is true then we don't allow
+       // length (all in one row) if that is true then we don't allow
        // any special options in the paragraph and also we don't allow
        // any environment other then "Standard" to be valid!
        bool asdefault =