flag the buffer dirty if replacing something

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8052 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-06 10:10:43 +00:00
parent 18b2090a3f
commit 15ac230f5d
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-11-06 Alfredo Braunstein <abraunst@libero.it>
* lyxfind.C (replaceAll): mark the buffer dirty if something was
replaced
2003-11-06 Alfredo Braunstein <abraunst@libero.it>
* iterators.[Ch] (ParIterator): new PosIterator-based ctor

View File

@ -209,6 +209,8 @@ int replaceAll(BufferView * bv,
PosIterator beg = buf.pos_iterator_begin();
bv->text->init(bv);
put_selection_at(bv, beg, 0, false);
if (num)
buf.markDirty();
return num;
}