]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
ws changes only
[lyx.git] / src / BufferView.C
index a7e582bee32d4dcaabb8394742ef1911aad8bd3f..293e0f9f4ed9452c6b1d76dcd9a966b82ff5a9c3 100644 (file)
@@ -35,6 +35,7 @@
 
 #include "insets/insetcommand.h" // ChangeRefs
 #include "insets/inseterror.h"
+#include "insets/updatableinset.h"
 
 #include "support/FileInfo.h"
 #include "support/filetools.h"
@@ -156,7 +157,7 @@ Change const BufferView::getCurrentChange()
        return pimpl_->getCurrentChange();
 }
 
+
 void BufferView::beforeChange(LyXText * text)
 {
        pimpl_->beforeChange(text);
@@ -787,7 +788,7 @@ int BufferView::unlockInset(UpdatableInset * inset)
                finishUndo();
                return 0;
        }
-       return bufferlist.unlockInset(inset);
+       return 1;
 }
 
 
@@ -865,12 +866,12 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to)
 }
 
 
-bool BufferView::ChangeCitationsIfUnique(string const & from,
-                                        string const & to)
+bool BufferView::ChangeCitationsIfUnique(string const & from, string const & to)
 {
        typedef pair<string, string> StringPair;
 
-       vector<StringPair> keys = buffer()->getBibkeyList();
+       vector<StringPair> keys;
+       buffer()->fillWithBibKeys(keys);
        if (count_if(keys.begin(), keys.end(),
                     lyx::equal_1st_in_pair<StringPair>(from))
            > 1)