]> git.lyx.org Git - lyx.git/commit
Remove updateInfo() calls in favor of doing the relevant work
authorRichard Heck <rgheck@lyx.org>
Tue, 3 Oct 2017 21:28:35 +0000 (17:28 -0400)
committerRichard Heck <rgheck@lyx.org>
Mon, 16 Oct 2017 00:53:15 +0000 (20:53 -0400)
commit2e934fc5f85b9e00ea4308000ea0674cd64c376d
tree315fedc038f72f3f4a732af4498ad6bbd791e521
parente68fd9ed0322de916aed4407b9d85133a6f5bc30
Remove updateInfo() calls in favor of doing the relevant work
in updateBuffer().

This is in response to a reported crash. See
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg202217.html
Commit af381a2f addressed the crash, and is worth doing anyway. But
this also makes sense.

Also adds a flag to tell us whether we need to recalculate the
relevant information. In some cases, there is no need to do so
more than once. (Note that, with the existing code, we *never*
recalculate, which would have given rise to bugs.)
src/factory.cpp
src/insets/InsetInfo.cpp
src/insets/InsetInfo.h