mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
fix pasting
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3275 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3bb41590f2
commit
95616fc9b3
@ -125,6 +125,11 @@ struct Selection
|
||||
|
||||
void paste(MathCursor & cursor) const
|
||||
{
|
||||
if (data_.nargs() == 1) {
|
||||
// single cell/part of cell
|
||||
cursor.insert(data_.cell(0));
|
||||
} else {
|
||||
// mulitple cells
|
||||
idx_type idx;
|
||||
MathGridInset * p = cursor.enclosingGrid(idx);
|
||||
col_type const numcols = min(data_.ncols(), p->ncols() - p->col(idx));
|
||||
@ -135,6 +140,7 @@ struct Selection
|
||||
p->cell(i).push_back(data_.cell(data_.index(row, col)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// glues selection to one cell
|
||||
MathArray glue() const
|
||||
|
Loading…
Reference in New Issue
Block a user