]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_cb.C
move definition of variables to the main cmake file
[lyx.git] / src / lyx_cb.C
index 3635a4a0a13cde61ad739921fa5240b205038d2c..4d108c860bc9d733b6da8d12b6ac089e563ec0e9 100644 (file)
@@ -302,7 +302,7 @@ void autoSave(BufferView * bv)
        // should probably be moved into BufferList (Lgb)
        // Perfect target for a thread...
 {
-       if (!bv->available())
+       if (!bv->buffer())
                return;
 
        if (bv->buffer()->isBakClean() || bv->buffer()->isReadonly()) {
@@ -353,7 +353,7 @@ void newFile(BufferView * bv, string const & filename)
 // Insert ascii file (if filename is empty, prompt for one)
 void insertAsciiFile(BufferView * bv, string const & f, bool asParagraph)
 {
-       if (!bv->available())
+       if (!bv->buffer())
                return;
 
        // FIXME: We don't know the encoding of the file
@@ -362,7 +362,7 @@ void insertAsciiFile(BufferView * bv, string const & f, bool asParagraph)
                return;
 
        // clear the selection
-       LyXText & const text = bv->buffer()->text();
+       LyXText const & text = bv->buffer()->text();
        if (&text == bv->getLyXText())
                bv->cursor().clearSelection();
        if (asParagraph)