]> git.lyx.org Git - lyx.git/blobdiff - src/lyxtextclasslist.C
add config.h
[lyx.git] / src / lyxtextclasslist.C
index 39b0f2faba62c0e2b85e4c4754d82dda3e971c7e..d9048a75be9dd4d603f7e6c7730c52729ce3d33e 100644 (file)
@@ -28,6 +28,7 @@ namespace lyx {
 namespace fs = boost::filesystem;
 
 using support::FileName;
+using support::addName;
 using support::libFileSearch;
 using support::makeDisplayPath;
 
@@ -179,7 +180,7 @@ LyXTextClassList::addTextClass(std::string const & textclass, std::string const
 {
        // only check for textclass.layout file, .cls can be anywhere in $TEXINPUTS
        // NOTE: latex class name is defined in textclass.layout, which can be different from textclass
-       FileName const layout_file(path + '/' + textclass + ".layout");
+       FileName const layout_file(addName(path, textclass + ".layout"));
        if (fs::exists(layout_file.toFilesystemEncoding())) {
                lyxerr[Debug::TCLASS] << "Adding class " << textclass << " from directory " << path << endl;
                // Read .layout file and get description, real latex classname etc