X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyx_cb.C;h=4d108c860bc9d733b6da8d12b6ac089e563ec0e9;hb=de161c40b1e8c5896f18f503c12cf29ec57bbf1e;hp=3635a4a0a13cde61ad739921fa5240b205038d2c;hpb=972e1eec7c12a5340fc63a21f3f184a4c2355301;p=lyx.git diff --git a/src/lyx_cb.C b/src/lyx_cb.C index 3635a4a0a1..4d108c860b 100644 --- a/src/lyx_cb.C +++ b/src/lyx_cb.C @@ -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)