diff --git a/src/BufferView_pimpl.C b/src/BufferView_pimpl.C index d3d9eb7c99..58b34419be 100644 --- a/src/BufferView_pimpl.C +++ b/src/BufferView_pimpl.C @@ -384,25 +384,21 @@ void BufferView::Pimpl::resizeCurrentBuffer() owner_->message(_("Formatting document...")); - lyxerr << "### resizeCurrentBuffer: text" << bv_->text() << endl; + lyxerr << "### resizeCurrentBuffer: text " << bv_->text() << endl; if (!bv_->text()) return; - //if (bv_->text()) { - par = bv_->text()->cursor.par(); - pos = bv_->text()->cursor.pos(); - selstartpar = bv_->text()->selection.start.par(); - selstartpos = bv_->text()->selection.start.pos(); - selendpar = bv_->text()->selection.end.par(); - selendpos = bv_->text()->selection.end.pos(); - selection = bv_->text()->selection.set(); - mark_set = bv_->text()->selection.mark(); - bv_->text()->fullRebreak(); - update(); - //} else { - // bv_->setText(new LyXText(bv_, 0, false, bv_->buffer()->paragraphs())); - // bv_->text()->init(bv_); - //} + par = bv_->text()->cursor.par(); + pos = bv_->text()->cursor.pos(); + selstartpar = bv_->text()->selection.start.par(); + selstartpos = bv_->text()->selection.start.pos(); + selendpar = bv_->text()->selection.end.par(); + 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(); if (par != -1) { bv_->text()->selection.set(true); diff --git a/src/insets/insetbibtex.C b/src/insets/insetbibtex.C index 0dbbed0c56..3ec64011f1 100644 --- a/src/insets/insetbibtex.C +++ b/src/insets/insetbibtex.C @@ -201,7 +201,7 @@ int InsetBibtex::latex(Buffer const & buffer, ostream & os, db_in = split(db_in, adb,','); } db_out = rtrim(db_out, ","); - os << "\\bibliography{" << db_out << "}\n"; + os << "\\bibliography{" << db_out << "}\n"; return 2; }