mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-29 12:48:33 +00:00
fix compile
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3e2abfdd78
commit
9a3ed31897
@ -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>
|
2003-05-12 Alfredo Braunstein: <abraunst@libero.it>
|
||||||
|
|
||||||
* ControlErrorList.[Ch]: added
|
* ControlErrorList.[Ch]: added
|
||||||
|
@ -16,8 +16,11 @@
|
|||||||
#include "buffer.h"
|
#include "buffer.h"
|
||||||
#include "BufferView.h"
|
#include "BufferView.h"
|
||||||
#include "lyxtext.h"
|
#include "lyxtext.h"
|
||||||
|
#include "debug.h"
|
||||||
|
|
||||||
|
|
||||||
|
using std::endl;
|
||||||
|
|
||||||
|
|
||||||
ControlErrorList::ErrorItem::ErrorItem(string const & error,
|
ControlErrorList::ErrorItem::ErrorItem(string const & error,
|
||||||
string const & description,
|
string const & description,
|
||||||
@ -26,6 +29,7 @@ ControlErrorList::ErrorItem::ErrorItem(string const & error,
|
|||||||
pos_start(pos_start), pos_end(pos_end)
|
pos_start(pos_start), pos_end(pos_end)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
ControlErrorList::ControlErrorList(Dialog & d)
|
ControlErrorList::ControlErrorList(Dialog & d)
|
||||||
: Dialog::Controller(d), current_(0)
|
: Dialog::Controller(d), current_(0)
|
||||||
{}
|
{}
|
||||||
@ -115,7 +119,7 @@ void ControlErrorList::goTo(int item)
|
|||||||
ParagraphList::iterator pit = buf->getParFromID(err.par_id);
|
ParagraphList::iterator pit = buf->getParFromID(err.par_id);
|
||||||
|
|
||||||
if (pit == bv->text->ownerParagraphs().end()) {
|
if (pit == bv->text->ownerParagraphs().end()) {
|
||||||
cout << "par id not found" << endl;
|
lyxerr << "par id not found" << endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,7 +128,7 @@ void ControlErrorList::goTo(int item)
|
|||||||
if (err.pos_end > pit->size() || range <= 0)
|
if (err.pos_end > pit->size() || range <= 0)
|
||||||
range = pit->size() - err.pos_start;
|
range = pit->size() - err.pos_start;
|
||||||
|
|
||||||
//now make the selection
|
// Now make the selection.
|
||||||
bv->insetUnlock();
|
bv->insetUnlock();
|
||||||
bv->toggleSelection();
|
bv->toggleSelection();
|
||||||
bv->text->clearSelection();
|
bv->text->clearSelection();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user