src/frontends/gnome/support.c
src/frontends/gtk/Dialogs.C
src/frontends/gtk/GBC.h
+src/frontends/gtk/GChanges.C
src/frontends/gtk/GCharacter.C
+src/frontends/gtk/GErrorList.C
+src/frontends/gtk/GLog.C
src/frontends/gtk/GMathDelim.C
src/frontends/gtk/GMathPanel.C
+src/frontends/gtk/GMathsMatrix.C
src/frontends/gtk/GParagraph.C
src/frontends/gtk/GSearch.C
+src/frontends/gtk/GShowFile.C
+src/frontends/gtk/GSpellchecker.C
src/frontends/gtk/GTableCreate.C
+src/frontends/gtk/GTexinfo.C
src/frontends/gtk/GToc.C
src/frontends/gtk/GUrl.C
src/frontends/qt2/Alert_pimpl.C
if (buffer_)
disconnectBuffer();
- // set current buffer
- buffer_ = b;
+ // if we are closing current buffer, switch to the first in
+ // buffer list.
+ if (!b) {
+ lyxerr[Debug::INFO] << " No Buffer!" << endl;
+ // we are closing the buffer, use the first buffer as current
+ buffer_ = bufferlist.first();
+ owner_->getDialogs().hideBufferDependent();
+ } else {
+ // set current buffer
+ buffer_ = b;
+ }
// reset old cursor
top_y_ = 0;
// hidden. This should go here because some dialogs (eg ToC)
// require bv_->text.
owner_->getDialogs().updateBufferDependent(true);
- } else {
- lyxerr[Debug::INFO] << " No Buffer!" << endl;
- // we are closing the buffer, use the first buffer as current
- buffer_ = bufferlist.first();
- owner_->getDialogs().hideBufferDependent();
- }
+ }
update();
updateScrollbar();
+2004-10-14 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * BufferView_pimpl.C (setBuffer): when closing a buffer, make sure
+ the cursor is correct (bug 1694)
+
2004-10-13 José Matos <jamatos@lyx.org>
- * output_docbook.C (docbookParagraphs): fix closing tags in the end of the document.
+ * output_docbook.C (docbookParagraphs): fix closing tags in the
+ end of the document.
2004-10-09 José Matos <jamatos@lyx.org>