commit 936db811c1c95938068e76037030db1776af6628
Author: Koji Yokota <[email protected]>
Date: Sun Jan 26 13:50:22 2025 +0900
Initializing char_format_index
---
src/Row.h | 2 +-
src/mathed/MathRow.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Row.h b/src/Row.h
index 5f837bcd6d..e5c7659ae9 100644
--- a/src/Row.h
+++ b/src/Row.h
@@ -153,7 +153,7 @@ public:
frontend::InputMethod * im = nullptr;
// Index in the char format vector the style of which is
applied to
// the corresponding segment of the preedit
- pos_type char_format_index;
+ pos_type char_format_index = 0;
// The input method language allows to wrap at any place
bool lang_wrap_any = false;
//
diff --git a/src/mathed/MathRow.h b/src/mathed/MathRow.h
index 5ad1e85e93..9d8cd2c8cc 100644
--- a/src/mathed/MathRow.h
+++ b/src/mathed/MathRow.h
@@ -85,7 +85,7 @@ public:
frontend::InputMethod * im = nullptr;
// Index in the char format vector the style of which is
applied to
// the corresponding segment of the preedit
- size_t char_format_index;
+ size_t char_format_index = 0;
// type is BEGIN, END
MathData const * ar;
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs