]> git.lyx.org Git - lyx.git/blobdiff - src/buffer.C
Add margin to paragraph dialog.
[lyx.git] / src / buffer.C
index 85b52337a1eb97016f04af5df6ce48cfe9bf26c6..345325a8690ed139ff531761f9963cdb45bd4eb9 100644 (file)
@@ -1138,8 +1138,8 @@ int Buffer::runChktex()
        busy(true);
 
        // get LaTeX-Filename
-       string const path = temppath();
-        string const name = addName(path, getLatexName());
+       FileName const path(temppath());
+       string const name = addName(path.absFilename(), getLatexName());
        string const org_path = filePath();
 
        support::Path p(path); // path to LaTeX file
@@ -1183,7 +1183,7 @@ void Buffer::validate(LaTeXFeatures & features) const
 
        // AMS Style is at document level
        if (params().use_amsmath == BufferParams::package_on
-           || tclass.provides(LyXTextClass::amsmath))
+           || tclass.provides("amsmath"))
                features.require("amsmath");
        if (params().use_esint == BufferParams::package_on)
                features.require("esint");