]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Disable changebar checkbox if show changes in output is off
[lyx.git] / src / BufferView.cpp
index 40d8643363763547574d93a1c887a4cdbf765fe5..0aad452fd0f2a4c04088922a3f1fe7278180ab0d 100644 (file)
@@ -345,9 +345,10 @@ BufferView::~BufferView()
        // That is to say, if a cursor is in a nested inset, it will be
        // restore to the left of the top level inset.
        LastFilePosSection::FilePos fp;
+       fp.file = buffer_.fileName();
        fp.pit = d->cursor_.bottom().pit();
        fp.pos = d->cursor_.bottom().pos();
-       theSession().lastFilePos().save(buffer_.fileName(), fp);
+       theSession().lastFilePos().save(fp);
 
        if (d->last_inset_)
                d->last_inset_->setMouseHover(this, false);
@@ -2739,17 +2740,6 @@ Cursor const & BufferView::cursor() const
 }
 
 
-void BufferView::setCursorLanguage(std::string const & code)
-{
-       Language const * lang = languages.getFromCode(code, buffer_.getLanguages());
-       if (lang) {
-               d->cursor_.current_font.setLanguage(lang);
-               d->cursor_.real_current_font.setLanguage(lang);
-       } else
-               LYXERR0("setCursorLanguage: unknown language code " << code);
-}
-
-
 bool BufferView::singleParUpdate()
 {
        Text & buftext = buffer_.text();
@@ -3195,7 +3185,6 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
                // however, the different coordinates of insets and paragraphs
                // needs to be updated.
                LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
-               pi.full_repaint = false;
                if (pain.isNull()) {
                        pi.full_repaint = true;
                        tm.draw(pi, 0, y);