deactivate the cursor cache

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8025 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2003-11-04 07:33:50 +00:00
parent 918df906bb
commit 5adaa51785
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-11-04 Alfredo Braunstein <abraunst@libero.it>
* text.C (cursorPar): deactivate the cursor cache
2003-11-03 Alfredo Braunstein <abraunst@libero.it>
* undo.C (performUndoOrRedo): fix cursor positioning with lockPath

View File

@ -1592,6 +1592,10 @@ void LyXText::backspace()
ParagraphList::iterator LyXText::cursorPar() const
{
return getPar(cursor.par());
#warning have a look at this again later.
// We need some method to mark the cache as invalidated when
// the paragraph it points get removed, for this to work.
if (cursor.par() != cache_pos_) {
cache_pos_ = cursor.par();
cache_par_ = getPar(cache_pos_);