]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / BufferView.C
index dd3ab58ad9c1287f6a80298a81ed676cfea766dc..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);
@@ -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)