[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [calligra/calligra/2.6] libs/kotext/commands: Don't delete the anchors. inlineManager takes care of
From:       C. Boemann <cbo () boemann ! dk>
Date:       2013-01-21 11:35:15
Message-ID: 20130121113515.9F6B6A6091 () git ! kde ! org
[Download RAW message or body]

Git commit 53f16e6ea2b24300a3c65815c9f4a4d8821b02eb by C. Boemann.
Committed on 21/01/2013 at 12:31.
Pushed by boemann into branch 'calligra/2.6'.

Don't delete the anchors. inlineManager takes care of keeping track of objects that \
has been removed. inlineManager still owns the inlineObjects

M  +0    -1    libs/kotext/commands/DeleteAnchorsCommand.cpp

http://commits.kde.org/calligra/53f16e6ea2b24300a3c65815c9f4a4d8821b02eb

diff --git a/libs/kotext/commands/DeleteAnchorsCommand.cpp \
b/libs/kotext/commands/DeleteAnchorsCommand.cpp index 4d4cbcf..d32f5f1 100644
--- a/libs/kotext/commands/DeleteAnchorsCommand.cpp
+++ b/libs/kotext/commands/DeleteAnchorsCommand.cpp
@@ -48,7 +48,6 @@ DeleteAnchorsCommand::DeleteAnchorsCommand(const \
QList<KoTextAnchor*> &anchors,  DeleteAnchorsCommand::~DeleteAnchorsCommand()
 {
     if (m_deleteAnchors) {
-        qDeleteAll(m_anchors);
     }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic