commit 5549d3033fe4842882fada7f26315ef397cd8e48
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Thu Feb 8 19:06:35 2018 +0100

    Reset cur.pit() when pasting into tables.
    
    The number of paragraphs can change here, so pit() can become invalid.
    
    Fixes: #9983
    (cherry picked from commit 6e4e0869006aa4c225162164aaa14a70d041facf)
---
 src/insets/InsetTabular.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp
index 94eed78..2037b76 100644
--- a/src/insets/InsetTabular.cpp
+++ b/src/insets/InsetTabular.cpp
@@ -6174,6 +6174,7 @@ bool InsetTabular::pasteClipboard(Cursor & cur)
                        inset->setChange(Change(buffer().params().track_changes 
?
                                                Change::INSERTED : 
Change::UNCHANGED));
                        cur.pos() = 0;
+                       cur.pit() = 0;
                }
        }
        return true;

Reply via email to