]> git.lyx.org Git - lyx.git/commitdiff
This is a bit more descriptive.
authorEnrico Forestieri <forenr@lyx.org>
Wed, 27 May 2009 10:26:17 +0000 (10:26 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 27 May 2009 10:26:17 +0000 (10:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29864 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index 5fc3573703ca42185a7f103e5e5acfbcfc9ceaaa..2dd4817e3e541fae1db1aedee68ac0a8683c1ab3 100644 (file)
@@ -1464,7 +1464,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
                        + tmppreamble + '\n';
 
        /* the user-defined preamble */
-       if (preamble.find_first_not_of(" \n\t") != docstring::npos)
+       if (!containsOnly(preamble, " \n\t"))
                // FIXME UNICODE
                atlyxpreamble += "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% "
                        "User specified LaTeX commands.\n"