bv->update(BufferView::SELECT);
bool const changed = text->changeDepth(type, false);
if (text->inset_owner)
- bv->updateInset((Inset *)text->inset_owner);
+ bv->updateInset((InsetOld *)text->inset_owner);
bv->update(BufferView::SELECT);
return changed;
}
}
}
+
+// deletes a selection during an insertion
+void replaceSelection(LyXText * lt)
+{
+ if (lt->selection.set()) {
+ lt->update();
+ lt->cutSelection(true, false);
+ lt->update();
+ }
+}
+
}; // namespace bv_funcs