+2005-05-20 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * tex2lyx.C (main): set correct masterFilePath for files like "subdir/file"
+
2005-04-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* text.C (parse_comment): Don't start a new paragraph for "%\n"
using lyx::support::isStrUnsignedInt;
using lyx::support::ltrim;
+using lyx::support::MakeAbsPath;
+using lyx::support::OnlyPath;
using lyx::support::rtrim;
using lyx::support::IsFileReadable;
return 2;
}
- if (lyx::support::AbsolutePath(argv[1]))
- masterFilePath = lyx::support::OnlyPath(argv[1]);
- else
- masterFilePath = lyx::support::getcwd();
+ masterFilePath = OnlyPath(MakeAbsPath(argv[1]));
tex2lyx(is, cout);