mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Fix bug discovered by Darren
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5486 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3aff7955f4
commit
6e6d6248c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user