fix compile

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2003-05-13 23:12:45 +00:00
parent 3e2abfdd78
commit 9a3ed31897
3 changed files with 19 additions and 11 deletions

View File

@ -1,3 +1,7 @@
2003-05-14 Lars Gullik Bjønnes <larsbj@gullik.net>
* ControlErrorList.C (goTo): use lyxerr not cout.
2003-05-12 Alfredo Braunstein: <abraunst@libero.it>
* ControlErrorList.[Ch]: added

View File

@ -16,8 +16,11 @@
#include "buffer.h"
#include "BufferView.h"
#include "lyxtext.h"
#include "debug.h"
using std::endl;
ControlErrorList::ErrorItem::ErrorItem(string const & error,
string const & description,
@ -26,6 +29,7 @@ ControlErrorList::ErrorItem::ErrorItem(string const & error,
pos_start(pos_start), pos_end(pos_end)
{}
ControlErrorList::ControlErrorList(Dialog & d)
: Dialog::Controller(d), current_(0)
{}
@ -115,7 +119,7 @@ void ControlErrorList::goTo(int item)
ParagraphList::iterator pit = buf->getParFromID(err.par_id);
if (pit == bv->text->ownerParagraphs().end()) {
cout << "par id not found" << endl;
lyxerr << "par id not found" << endl;
return;
}
@ -124,7 +128,7 @@ void ControlErrorList::goTo(int item)
if (err.pos_end > pit->size() || range <= 0)
range = pit->size() - err.pos_start;
//now make the selection
// Now make the selection.
bv->insetUnlock();
bv->toggleSelection();
bv->text->clearSelection();