]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView2.C
Fixed cut&paste bugs and added freespacing for ERT Insets.
[lyx.git] / src / BufferView2.C
index c1bfcb34d3f06cbe33440672d9dabfdf7e7f2923..0d5d4c10a418bd6a90f4c40242f5a36808a80994 100644 (file)
@@ -390,6 +390,9 @@ void BufferView::replaceWord(string const & replacestring)
 
 bool BufferView::lockInset(UpdatableInset * inset)
 {
+       // don't relock if we're already locked
+       if (theLockingInset() == inset)
+               return true;
        if (!theLockingInset() && inset) {
                theLockingInset(inset);
                return true;