From 13462e25c338aaea7290ecc45937fde8a8772809 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 13 May 2002 12:42:03 +0000 Subject: [PATCH] fix crash on paste as reported by Piroux Geoffroy git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4153 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/ChangeLog | 5 +++++ src/mathed/math_cursor.C | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mathed/ChangeLog b/src/mathed/ChangeLog index 9eed415a68..b0eed42098 100644 --- a/src/mathed/ChangeLog +++ b/src/mathed/ChangeLog @@ -1,3 +1,8 @@ + +2002-05-13 André Pönitz + + * math_cursor.C: fix crash on paste as reported by Piroux Geoffroy + 2002-04-24 Juergen Vigna * formulabase.C (insetButtonPress): set the mathcursor in case we diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 4a4fd6c6ec..8bf036a004 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -130,7 +130,7 @@ struct Selection { if (data_.nargs() == 1) { // single cell/part of cell - cursor.insert(data_.cell(0)); + cursor.paste(data_.cell(0)); } else { // mulitple cells idx_type idx; // index of upper left cell -- 2.39.2