mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Simplify logic a bit. (This was meant to be part of a previous
commit.)
This commit is contained in:
parent
d8aab4af9e
commit
2104d41f71
@ -4322,12 +4322,11 @@ Buffer::ExportStatus Buffer::preview(string const & format, bool includeall) con
|
|||||||
|
|
||||||
if (status != ExportSuccess)
|
if (status != ExportSuccess)
|
||||||
return status;
|
return status;
|
||||||
if (previewFile.exists()) {
|
|
||||||
if (!formats.view(*this, previewFile, format))
|
if (previewFile.exists())
|
||||||
return PreviewError;
|
return formats.view(*this, previewFile, format) ?
|
||||||
else
|
PreviewSuccess : PreviewError;
|
||||||
return PreviewSuccess;
|
|
||||||
}
|
|
||||||
// Successful export but no output file?
|
// Successful export but no output file?
|
||||||
// Probably a bug in error detection.
|
// Probably a bug in error detection.
|
||||||
LATTEST(status != ExportSuccess);
|
LATTEST(status != ExportSuccess);
|
||||||
|
Loading…
Reference in New Issue
Block a user