]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
last Friday's text*.C -> text_func shuffle
[lyx.git] / src / BufferView.C
index f5e0dcae38f8600f6625b23eb5df8d479c745256..5f34fa5885a692ce0df9df8c0f44399295a840be 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 1995-2002 the LyX Team
  * Read the file COPYING
  *
- * \author unknown
+ * \author Lars Gullik Bjønnes
  * \author John Levon <moz@compsoc.man.ac.uk>
  */
 
@@ -49,6 +49,7 @@
 extern BufferList bufferlist;
 
 using lyx::pos_type;
+using namespace lyx::support;
 
 using std::pair;
 using std::endl;
@@ -341,6 +342,7 @@ void BufferView::showErrorList(string const & action) const
        if (getErrorList().size()) {
                string const title = bformat(_("LyX: %1$s errors (%2$s)"), action, buffer()->fileName());
                owner()->getDialogs().show("errorlist", title);
+               pimpl_->errorlist_.clear();
        }
 }
 
@@ -349,7 +351,6 @@ ErrorList const &
 BufferView::getErrorList() const
 {
        return pimpl_->errorlist_;
-       pimpl_->errorlist_.clear();
 }
 
 
@@ -636,7 +637,7 @@ bool BufferView::ChangeInsets(Inset::Code code,
                                text->setCursorIntern(it.pit(), 0);
                                text->redoParagraphs(text->cursor,
                                                     boost::next(text->cursor.par()));
-                               text->fullRebreak();
+                               text->partialRebreak();
                        }
                }
        }