[LyX/2.3.x] Reset failedtoload_ bool when include inset params are changed (#11842)
Juergen Spitzmueller
spitz at lyx.org
Sat Apr 18 05:38:35 UTC 2020
commit f3f0b53ba6bb01f2b687de7892665ae42f5230a8
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Apr 17 10:19:46 2020 +0200
Reset failedtoload_ bool when include inset params are changed (#11842)
(cherry picked from commit d9b884341c6c8a3addb95071bc0f203519bfbe0d)
---
src/insets/InsetInclude.cpp | 3 +++
status.23x | 2 ++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp
index e21de4d..7bf2329 100644
--- a/src/insets/InsetInclude.cpp
+++ b/src/insets/InsetInclude.cpp
@@ -358,6 +358,9 @@ void InsetInclude::setParams(InsetCommandParams const & p)
// invalidate the cache
child_buffer_ = 0;
+ // reset in order to allow loading new file
+ failedtoload_ = false;
+
InsetCommand::setParams(p);
set_label_ = false;
diff --git a/status.23x b/status.23x
index dd7693e..a6ead19 100644
--- a/status.23x
+++ b/status.23x
@@ -71,6 +71,8 @@ What's new
- Fix tablefootnote loading order (bug 11841).
+- Fix reloading of changed include inset (11842).
+
* USER INTERFACE
More information about the lyx-cvs
mailing list