mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
From John C. McCabe-Dansted:
* src/lyxtextclasslist.C (LyXTextClassList::addTextClass): Use addName rather than manual path construction. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17282 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d8fd1b7a24
commit
73a6922d8e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user