if (test_only)
return text->changeDepth(type, true);
- bv->update(BufferView::SELECT);
bool const changed = text->changeDepth(type, false);
if (text->inset_owner)
- bv->updateInset((Inset *)text->inset_owner);
- bv->update(BufferView::SELECT);
+ bv->updateInset((InsetOld *)text->inset_owner);
+ bv->update();
return changed;
}
if (!text)
return;
- bv->update(text, BufferView::SELECT);
text->toggleFree(font, toggleall);
- bv->update(text, BufferView::SELECT);
+ bv->update();
if (font.language() != ignore_language ||
font.number() != LyXFont::IGNORE) {
}
}
+
+// 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