[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kword
From: David Faure <faure () kde ! org>
Date: 2002-12-18 0:04:16
[Download RAW message or body]
CVS commit by faure:
Argl, don't use a deleted paragraph.
CCMAIL: 45906-done@bugs.kde.org
M +7 -5 contents.cc 1.51
--- koffice/kword/contents.cc #1.50:1.51
@@ -143,6 +143,4 @@ KoTextCursor * KWInsertTOCCommand::remov
parag->style()->name() == "Contents Title" ) )
{
- posOfToc=parag;
-
kdDebug() << "KWContents::createContents Deleting paragraph " << p << " \
" << p->paragId() << endl; // This paragraph is part of the TOC -> remove
@@ -173,4 +171,5 @@ KoTextCursor * KWInsertTOCCommand::remov
kdDebug() << "KWInsertTOCCommand::removeTOC " << p << " deleted" << \
endl; p = next;
+ posOfToc = p;
kdDebug() << "KWInsertTOCCommand::removeTOC prev=" << prev << " p=" << p \
<< endl; // Fix parag chain
@@ -180,4 +179,6 @@ KoTextCursor * KWInsertTOCCommand::remov
if ( p )
p->setParagId( prev->paragId() + 1 );
+ else
+ posOfToc = prev;
}
else
@@ -191,4 +192,5 @@ KoTextCursor * KWInsertTOCCommand::remov
textdoc->clear( true ); // recreate empty parag.
cursor->setParag( textdoc->firstParag() );
+ posOfToc = textdoc->firstParag();
break;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic