[LyX/master] Do not forget to reset stream after std::hex

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Sep 9 15:51:38 UTC 2024


commit f4c02d670b60a56bc6fb4a49e201c7134af1011b
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Mon Sep 9 17:49:20 2024 +0200

    Do not forget to reset stream after std::hex
    
    Spotted by Coverity scan.
---
 src/frontends/qt/GuiWorkArea.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index bb616e7abb..c643a30192 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -1510,7 +1510,7 @@ void GuiWorkArea::inputMethodEvent(QInputMethodEvent * e)
 
 QVariant GuiWorkArea::inputMethodQuery(Qt::InputMethodQuery query) const
 {
-	LYXERR(Debug::INFO, "incoming InputMethodQuery Value: 0x" << std::hex << query);
+	LYXERR(Debug::INFO, "incoming InputMethodQuery Value: 0x" << std::hex << query << std::dec);
 	switch (query) {
 	// this is the CJK-specific composition window position and
 	// the context menu position when the menu key is pressed.


More information about the lyx-cvs mailing list