]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetvspace.C
* BufferParams:
[lyx.git] / src / insets / insetvspace.C
index c9f4a5abf16709e73e6f3a734ae442b20562b929..789b75c585f5be64795cb03464d492cd411bea1d 100644 (file)
@@ -88,7 +88,7 @@ void InsetVSpace::read(Buffer const &, LyXLex & lex)
        BOOST_ASSERT(lex.isOK());
        string vsp;
        lex >> vsp;
-       if (lex)
+       if (lex.isOK())
                space_ = VSpace(vsp);
 
        string end_token;
@@ -211,10 +211,10 @@ int InsetVSpace::latex(Buffer const & buf, odocstream & os,
 
 
 int InsetVSpace::plaintext(Buffer const &, odocstream & os,
-                           OutputParams const & runparams) const
+                           OutputParams const &) const
 {
        os << "\n\n";
-       return runparams.linelen; // start with column 0 in new line
+       return PLAINTEXT_NEWLINE;
 }
 
 
@@ -257,7 +257,7 @@ void InsetVSpaceMailer::string2params(string const & in, VSpace & vspace)
 
        string vsp;
        lex >> vsp;
-       if (lex)
+       if (lex.isOK())
                vspace = VSpace(vsp);
 }