[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Calligra/words-change_tracking-ganeshp] e16253f: Removing redundant
From: Ganesh Paramasivam <ganesh () crystalfab ! com>
Date: 2011-01-19 11:27:04
Message-ID: 20110119112704.DB1DFA6090 () git ! kde ! org
[Download RAW message or body]
commit e16253f7312e7fd477f89b8fea764f78337d75da
branch words-change_tracking-ganeshp
Author: Ganesh Paramasivam <ganesh@crystalfab.com>
Date: Wed Jan 19 16:48:17 2011 +0530
Removing redundant setting of change format in processDeleteChange
diff --git a/libs/kotext/opendocument/KoTextLoader.cpp \
b/libs/kotext/opendocument/KoTextLoader.cpp index 33e2a33..2bddfed 100644
--- a/libs/kotext/opendocument/KoTextLoader.cpp
+++ b/libs/kotext/opendocument/KoTextLoader.cpp
@@ -1809,14 +1809,9 @@ void KoTextLoader::Private::processDeleteChange(QTextCursor \
&cursor) int startPosition = rangeValue.first;
int endPosition = rangeValue.second;
- //Set the char format to the changeId
cursor.setPosition(startPosition);
cursor.setPosition(endPosition, QTextCursor::KeepAnchor);
- QTextCharFormat format;
- format.setProperty(KoCharacterStyle::ChangeTrackerId, changeId);
- cursor.mergeCharFormat(format);
-
//Get the QTextDocumentFragment from the selection and store it in the \
changeElement
QTextDocumentFragment deletedFragment = \
KoChangeTracker::generateDeleteFragment(cursor, \
changeElement->getDeleteChangeMarker()); \
changeElement->setDeleteData(deletedFragment);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic