[LyX/master] Fixup 999fb37e: always run updateMacros when in batch mode
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu Jul 25 16:42:35 UTC 2024
commit fe1a3b57df2cd6adf1bd4752d05b1aae40a4e5b7
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Thu Jul 25 18:30:38 2024 +0200
Fixup 999fb37e: always run updateMacros when in batch mode
The optimization is useful in GUI mode only, and it turns out that it
creates weird crashes otherwise.
Thanks to Juergen Spitzmuller for the idea.
---
src/Buffer.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 59733d852e..a13c8e5f9f 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -3922,7 +3922,7 @@ void Buffer::updateMacros() const
return;
// early exit if the buffer has not changed since last time
- if (d->update_macros_id_ == d->id_)
+ if (d->gui_ && d->update_macros_id_ == d->id_)
return;
d->update_macros_id_ = d->id_;
More information about the lyx-cvs
mailing list