pars.erase(start, finish);
return;
}
- case OutlineIn:
- buf.undo().recordUndo(cur);
+ case OutlineIn: {
+ pit_type const len = distance(start, finish);
+ buf.undo().recordUndo(cur, ATOMIC_UNDO, pit, pit + len - 1);
for (; start != finish; ++start) {
toclevel = start->layout()->toclevel;
if (toclevel == Layout::NOT_IN_TOC)
}
}
return;
-
- case OutlineOut:
- buf.undo().recordUndo(cur);
+ }
+ case OutlineOut: {
+ pit_type const len = distance(start, finish);
+ buf.undo().recordUndo(cur, ATOMIC_UNDO, pit, pit + len - 1);
for (; start != finish; ++start) {
toclevel = start->layout()->toclevel;
if (toclevel == Layout::NOT_IN_TOC)
}
}
return;
+ }
}
}
*/
if (cur.selection())
cutSelection(cur, true, false);
- insertInset(cur, inset);
+ cur.insert(inset);
cur.posForward();
}
break;
pasteFromStack(cur, bv->buffer().errorList("Paste"),
convert<unsigned int>(arg));
} else {
- Clipboard::GraphicsType type;
+ Clipboard::GraphicsType type = Clipboard::AnyGraphicsType;
if (arg == "pdf")
type = Clipboard::PdfGraphicsType;
else if (arg == "png")