commit 2e12882ec6fbf37c0480e98099f01fa355f45bc0
Author: Thibaut Cuvelier <[email protected]>
Date: Sat Mar 22 23:24:44 2025 +0100
MathStream: fix the order of arguments when building a docstring.
Repeat once the given character, not the given character times `0x01`.
---
src/mathed/MathStream.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mathed/MathStream.cpp b/src/mathed/MathStream.cpp
index 5b6a98d9df..a5e9edcad0 100644
--- a/src/mathed/MathStream.cpp
+++ b/src/mathed/MathStream.cpp
@@ -697,7 +697,7 @@ MathMLStream & operator<<(MathMLStream & ms, docstring
const & s)
lyxerr << "Assertion
failed in MathLMStream::operator<<(docstring): the buffer is not empty (" <<
buf << ") when processing a single character";
}
- buf = docstring(c, 1);
+ buf = docstring(1, c);
ms.os_ <<
ms.current_font_.convertCharacterToUnicodeEntityWithFont(buf, ms.inText());
buf.clear();
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs