mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
Missed this when fixing the TextClass::read() API.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23330 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
80500c426a
commit
058933bb94
@ -493,11 +493,11 @@ bool TextClass::read(FileName const & filename, ReadType rt)
|
||||
LYXERR(Debug::TCLASS, "Converting layout file from format "
|
||||
<< format << " to " << FORMAT);
|
||||
FileName const tempfile = FileName::tempName();
|
||||
error = !layout2layout(filename, tempfile);
|
||||
if (!error)
|
||||
error = read(tempfile, rt);
|
||||
bool success = layout2layout(filename, tempfile);
|
||||
if (success)
|
||||
read(tempfile, rt);
|
||||
tempfile.removeFile();
|
||||
return !error;
|
||||
return success;
|
||||
}
|
||||
|
||||
LYXERR(Debug::TCLASS, "Finished reading " + translateRT(rt) + ": " +
|
||||
|
Loading…
Reference in New Issue
Block a user