delete the annotation item when the annotation it represent was removed

svn path=/trunk/KDE/kdegraphics/okular/; revision=752761
This commit is contained in:
Pino Toscano 2007-12-25 14:47:53 +00:00
parent a02131d6a9
commit 6d68021b61

View file

@ -171,6 +171,7 @@ void AnnotationModelPrivate::notifyPageChanged( int page, int flags )
if ( !found )
{
q->beginRemoveRows( indexForItem( annItem ), i - 1, i - 1 );
delete annItem->children.at( i - 1 );
annItem->children.removeAt( i - 1 );
q->endRemoveRows();
}