Always use std::endl with lyxerr.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7480 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-08-01 21:18:49 +00:00
parent 195c4e14c3
commit ffe20e2e9c
2 changed files with 12 additions and 9 deletions

View File

@ -188,10 +188,10 @@ bool BufferView::Pimpl::loadLyXFile(string const & filename, bool tolastfiles)
// get absolute path of file and add ".lyx" to the filename if // get absolute path of file and add ".lyx" to the filename if
// necessary // necessary
string s = FileSearch(string(), filename, "lyx"); string s = FileSearch(string(), filename, "lyx");
bool const found = !s.empty(); bool const found = !s.empty();
if (!found) if (!found)
s = filename; s = filename;
// file already open? // file already open?
@ -404,14 +404,14 @@ int BufferView::Pimpl::resizeCurrentBuffer()
bv_->text->fullRebreak(); bv_->text->fullRebreak();
update(); update();
} else { } else {
lyxerr << "text not available!\n"; lyxerr << "text not available!" << endl;
// See if we have a text in TextCache that fits // See if we have a text in TextCache that fits
// the new buffer_ with the correct width. // the new buffer_ with the correct width.
bv_->text = textcache.findFit(buffer_, workarea().workWidth()); bv_->text = textcache.findFit(buffer_, workarea().workWidth());
if (bv_->text) { if (bv_->text) {
lyxerr << "text in cache!\n"; lyxerr << "text in cache!" << endl;
if (lyxerr.debugging()) { if (lyxerr.debugging()) {
lyxerr << "Found a LyXText that fits:\n"; lyxerr << "Found a LyXText that fits:" << endl;
textcache.show(lyxerr, make_pair(buffer_, make_pair(workarea().workWidth(), bv_->text))); textcache.show(lyxerr, make_pair(buffer_, make_pair(workarea().workWidth(), bv_->text)));
} }
// Set the owner of the newly found text // Set the owner of the newly found text
@ -421,7 +421,7 @@ int BufferView::Pimpl::resizeCurrentBuffer()
resizeInsets(bv_); resizeInsets(bv_);
} else { } else {
lyxerr << "no text in cache!\n"; lyxerr << "no text in cache!" << endl;
bv_->text = new LyXText(bv_); bv_->text = new LyXText(bv_);
resizeInsets(bv_); resizeInsets(bv_);
bv_->text->init(bv_); bv_->text->init(bv_);
@ -639,7 +639,7 @@ void BufferView::Pimpl::workAreaResize()
void BufferView::Pimpl::update() void BufferView::Pimpl::update()
{ {
lyxerr << "BufferView::update()\n"; lyxerr << "BufferView::update()" << endl;
screen().redraw(*bv_); screen().redraw(*bv_);
} }

View File

@ -1,3 +1,6 @@
2003-08-01 Lars Gullik Bjønnes <larsbj@lyx.org>
* BufferView_pimpl.C: _Always_ use std::endl with lyxerr
2003-08-01 André Pönitz <poenitz@gmx.net> 2003-08-01 André Pönitz <poenitz@gmx.net>
@ -60,10 +63,10 @@
* factory.C: submenu for Note/Comment/Greyedout * factory.C: submenu for Note/Comment/Greyedout
2003-07-29 Alfredo Braunstein <abraunst@libero.it> 2003-07-29 Alfredo Braunstein <abraunst@libero.it>
* lyx_main.C (LyX): * lyx_main.C (LyX):
* BufferView_pimpl.C (loadLyXFile): fix to bugs 1287 and 1297 + ws * BufferView_pimpl.C (loadLyXFile): fix to bugs 1287 and 1297 + ws
2003-07-29 Martin Vermeer <martin.vermeer@hut.fi> 2003-07-29 Martin Vermeer <martin.vermeer@hut.fi>
* LaTeXFeatures.C: * LaTeXFeatures.C: