fix a crash on exit since nobody objected

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8164 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-12-01 00:35:26 +00:00
parent 0ad320dce9
commit ee6fcfd1dd
2 changed files with 9 additions and 3 deletions

View File

@ -293,9 +293,6 @@ void BufferView::Pimpl::buffer(Buffer * b)
// set current buffer
buffer_ = b;
buffer_->text().init(bv_);
buffer_->text().textwidth_ = workarea().workWidth();
buffer_->text().fullRebreak();
top_y_ = 0;
@ -311,6 +308,10 @@ void BufferView::Pimpl::buffer(Buffer * b)
lyxerr[Debug::INFO] << "Buffer addr: " << buffer_ << endl;
connectBuffer(*buffer_);
buffer_->text().init(bv_);
buffer_->text().textwidth_ = workarea().workWidth();
buffer_->text().fullRebreak();
// If we don't have a text object for this, we make one
if (bv_->text() == 0)
resizeCurrentBuffer();

View File

@ -1,3 +1,8 @@
2003-12-01 John Levon <levon@movementarian.org>
* BufferView_pimpl.C: fix a crash on exit with
a buffer open
2003-11-30 Martin Vermeer <martin.vermeer@hut.fi>
* BranchList.C: fix setSelected() method.