set new text width on workarea resize

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8180 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-12-02 10:51:58 +00:00
parent a5e85854f8
commit b36207b449
2 changed files with 13 additions and 17 deletions

View File

@ -388,7 +388,6 @@ void BufferView::Pimpl::resizeCurrentBuffer()
if (!bv_->text())
return;
//if (bv_->text()) {
par = bv_->text()->cursor.par();
pos = bv_->text()->cursor.pos();
selstartpar = bv_->text()->selection.start.par();
@ -397,12 +396,9 @@ void BufferView::Pimpl::resizeCurrentBuffer()
selendpos = bv_->text()->selection.end.pos();
selection = bv_->text()->selection.set();
mark_set = bv_->text()->selection.mark();
bv_->text()->textwidth_ = bv_->workWidth();
bv_->text()->fullRebreak();
update();
//} else {
// bv_->setText(new LyXText(bv_, 0, false, bv_->buffer()->paragraphs()));
// bv_->text()->init(bv_);
//}
if (par != -1) {
bv_->text()->selection.set(true);