]> git.lyx.org Git - features.git/commit
Do a fresh compile for preview after error (#9061)
authorScott Kostyshak <skostysh@lyx.org>
Sun, 3 May 2015 05:22:03 +0000 (01:22 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 5 May 2015 04:30:50 +0000 (00:30 -0400)
commit72c5385f838a2620f613c8a405f872625c0d104c
tree7e0257f6646f18bc44796bb9959c5293d6072fe6
parenta1aeea3f16cc786d8948f546bd98ffd976b9c162
Do a fresh compile for preview after error (#9061)

As Enrico said, the user might have installed a package that was
missing (in which case the .tex file would not have changed).

Another reason is that changing some document settings did not
automatically lead to a fresh compile after an error (#9061).

Our old mechanism for detemining whether there was an error was to
check if the dependent file existed in the temporary directory. If
it did not exist, that meant it was removed, presumably because
there was an error during compilation. That mechanism cannot be used
anymore because we keep the files around even after error because of
the "Show Output Anyway" button (09700d5b). This commit implements a
more straightforward way of checking whether there was an error in
the previous preview by simply storing the success of last compile
in a buffer variable.
src/Buffer.cpp
src/Buffer.h
src/Converter.cpp
src/LaTeX.cpp
src/LaTeX.h