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:
Richard Heck 2008-02-28 18:17:59 +00:00
parent 80500c426a
commit 058933bb94

View File

@ -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) + ": " +