X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclasslist.C;h=d9048a75be9dd4d603f7e6c7730c52729ce3d33e;hb=52eb91c94fb70d58dceef430659c8781de2eccda;hp=39b0f2faba62c0e2b85e4c4754d82dda3e971c7e;hpb=bb2dc9c83f992dd6e237037402844be2ce710a5e;p=lyx.git diff --git a/src/lyxtextclasslist.C b/src/lyxtextclasslist.C index 39b0f2faba..d9048a75be 100644 --- a/src/lyxtextclasslist.C +++ b/src/lyxtextclasslist.C @@ -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