From 73a6922d8eaaada783566fffff01fad0db444c61 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 20 Feb 2007 19:38:15 +0000 Subject: [PATCH] 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 --- src/lyxtextclasslist.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2