mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
tex2lyx/text.cpp: add a missing ',' and use LyX's method to remove the file extension (thanks Georg)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40480 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
37de920228
commit
2cc4d6ae25
@ -2352,9 +2352,10 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
||||
// The file extension is in every case ".tex".
|
||||
// So we need to remove this extension and check for
|
||||
// the original one.
|
||||
name.erase(name.length() - 4, name.length());
|
||||
name = removeExtension(name);
|
||||
//name.erase(name.length() - 4, name.length());
|
||||
if (!makeAbsPath(name, path).exists()) {
|
||||
char const * const Gnumeric_formats[] = {"gnumeric"
|
||||
char const * const Gnumeric_formats[] = {"gnumeric",
|
||||
"ods", "xls", 0};
|
||||
string const Gnumeric_name =
|
||||
find_file(name, path, Gnumeric_formats);
|
||||
|
Loading…
Reference in New Issue
Block a user