[LyX/master] Do not set open_font true if none was open

Juergen Spitzmueller spitz at lyx.org
Fri Feb 4 15:53:00 UTC 2022


commit 28dd7b7de3527638ea8772815ec27439f87fddda
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Feb 4 17:24:16 2022 +0100

    Do not set open_font true if none was open
---
 src/Paragraph.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index a08f3ac..e29f268 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -2894,7 +2894,7 @@ void Paragraph::latex(BufferParams const & bparams,
 				}
 			} else {
 				running_font = current_font;
-				open_font = !langClosed;
+				open_font &= !langClosed;
 			}
 		}
 


More information about the lyx-cvs mailing list