From 6e6d6248c226aea3a00f4ce534f13e88978f34d1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 24 Oct 2002 06:45:29 +0000 Subject: [PATCH] Fix bug discovered by Darren git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5486 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/math_cursor.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mathed/math_cursor.C b/src/mathed/math_cursor.C index 7add137ec7..00433ff403 100644 --- a/src/mathed/math_cursor.C +++ b/src/mathed/math_cursor.C @@ -1333,6 +1333,11 @@ string MathCursor::grabSelection() const MathCursorPos i2; getSelection(i1, i2); + if (i1.idx_ == i2.idx_) { + MathArray::const_iterator it = i1.cell().begin(); + return asString(MathArray(it + i1.pos_, it + i2.pos_)); + } + row_type r1, r2; col_type c1, c2; region(i1, i2, r1, r2, c1, c2); -- 2.39.5