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