commit 937710f785d97151cbb90c065ae61c0f75ff8daf
Author: Juergen Spitzmueller <[email protected]>
Date:   Wed Oct 21 08:29:35 2026 +0200

    Add missing buffer update in InsetTabular::pasteClipboard()
    
    See #13377
---
 src/insets/InsetTabular.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 03e3d81b1f..71fd6d07b8 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -8261,6 +8261,10 @@ bool InsetTabular::pasteClipboard(Cursor & cur)
        }
        // amend cursor position if cols have been appended
        cur.idx() += actrow * (tabular.ncols() - oldncols);
+       // The pasted cells are new insets whose Text has no macro context
+       // position yet (set in Buffer::updateBuffer), so an update is needed
+       // before the next metrics pass.
+       cur.forceBufferUpdate();
        return true;
 }
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to