commit 3a7af6758ffd9118a1150f4472ab2bbca257e633
Author: Juergen Spitzmueller <[email protected]>
Date:   Fri Nov 7 11:44:54 2025 +0100

    Use correct index when pasting plain text string into table
    
    if cells are selected, this needs to be selStart
---
 src/insets/InsetTabular.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 7627d16594..928345dd50 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -8395,7 +8395,7 @@ bool InsetTabular::insertPlaintextString(BufferView & bv, 
docstring const & buf,
                dirtyTabularStack(true);
        } else {
                loctab = &tabular;
-               cell = bv.cursor().idx();
+               cell = bv.cursor().selectionBegin().idx();
                ocol = tabular.cellColumn(cell);
                row = tabular.cellRow(cell);
        }
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to