mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 03:36:39 +00:00
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:
parent
a5e85854f8
commit
b36207b449
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user