commit 02b1f4df7c3ccbba9f6ca6b1e73810b38b5093a0
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
    
    (cherry picked from commit 3a7af6758ffd9118a1150f4472ab2bbca257e633)
---
 src/insets/InsetTabular.cpp | 2 +-
 status.24x                  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 37d4daa7db..a6bcd33d1d 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -7753,7 +7753,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);
        }
diff --git a/status.24x b/status.24x
index e0d4a24c3d..c2d6f473ce 100644
--- a/status.24x
+++ b/status.24x
@@ -87,6 +87,8 @@ What's new
 
 - Indent paragraphs after proofs (which are indented in the output).
 
+- Fix pasting of multiple-cell plaintext to tables with cells selected.
+
 
 * INTERNALS
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to