commit ac6aeb5a7a5007fc53d68e9c4a6673c310f6ed20
Author: Koji Yokota <[email protected]>
Date: Wed Nov 26 21:14:37 2025 +0900
Fix Rows initialization (thanks to Kornel)
---
src/frontends/qt/GuiInputMethod.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/frontends/qt/GuiInputMethod.cpp
b/src/frontends/qt/GuiInputMethod.cpp
index 55b9333e0c..b9348328d9 100644
--- a/src/frontends/qt/GuiInputMethod.cpp
+++ b/src/frontends/qt/GuiInputMethod.cpp
@@ -1090,6 +1090,7 @@ pos_type GuiInputMethod::initializePositions(Cursor * cur)
// d->virtual_boundary_ = if the preedits hit the boundary
// and returns the row index of the starting point of preedits
+ d->pm_ptr_ = resetParagraphMetrics(cur);
if (d->rows_size_ == 0 || d->rows_->empty())
return 0;
@@ -1097,7 +1098,6 @@ pos_type GuiInputMethod::initializePositions(Cursor * cur)
if (cur->top().pos() != d->cur_pos_)
Q_EMIT cursorPositionChanged();
- d->pm_ptr_ = resetParagraphMetrics(cur);
// Note that getRowIndex(., false) gives the row index *after* preedit
// strings since they are virtual, so it increases as preedit strings go
// over multiple rows. To fix it at the starting point, getRowIndex(.,
true)
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs