mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36: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 "
|
LYXERR(Debug::TCLASS, "Converting layout file from format "
|
||||||
<< format << " to " << FORMAT);
|
<< format << " to " << FORMAT);
|
||||||
FileName const tempfile = FileName::tempName();
|
FileName const tempfile = FileName::tempName();
|
||||||
error = !layout2layout(filename, tempfile);
|
bool success = layout2layout(filename, tempfile);
|
||||||
if (!error)
|
if (success)
|
||||||
error = read(tempfile, rt);
|
read(tempfile, rt);
|
||||||
tempfile.removeFile();
|
tempfile.removeFile();
|
||||||
return !error;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
LYXERR(Debug::TCLASS, "Finished reading " + translateRT(rt) + ": " +
|
LYXERR(Debug::TCLASS, "Finished reading " + translateRT(rt) + ": " +
|
||||||
|
Loading…
Reference in New Issue
Block a user