[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkoffice/koffice/change-tracking=5D_libs/kotext=3A_F?=
From: Ganesh Paramasivam <ganesh () crystalfab ! com>
Date: 2011-02-22 11:46:56
Message-ID: 20110222114656.C54BCA609B () git ! kde ! org
[Download RAW message or body]
Git commit 37f46e4a89b9a91fdfbc710f68750b0998e6a6d9 by Ganesh Paramasivam.
Committed on 22/02/2011 at 12:46.
Pushed by ganeshp into branch 'koffice/change-tracking'.
Fixing a crash in the insertion of text
M +2 -2 libs/kotext/KoTextEditor.cpp
http://commits.kde.org/koffice/37f46e4a89b9a91fdfbc710f68750b0998e6a6d9
diff --git a/libs/kotext/KoTextEditor.cpp b/libs/kotext/KoTextEditor.cpp
index 2707251..750e698 100644
--- a/libs/kotext/KoTextEditor.cpp
+++ b/libs/kotext/KoTextEditor.cpp
@@ -382,12 +382,12 @@ void KoTextEditor::registerTrackedChange(QTextCursor \
&selection, KoGenChange::Ty
KoChangeTracker *changeTracker = \
KoTextDocument(d->document).changeTracker(); if (!checker.atBlockStart()) {
int changeId = \
checker.charFormat().property(KoCharacterStyle::ChangeTrackerId).toInt();
- if (changeTracker->elementById(changeId)->getChangeType() == \
changeType) + if (changeId && \
changeTracker->elementById(changeId)->getChangeType() == changeType) idBefore = \
changeId; } else {
if (!checker.currentTable()) {
int changeId = \
checker.blockFormat().intProperty(KoCharacterStyle::ChangeTrackerId);
- if (changeTracker->elementById(changeId)->getChangeType() == \
changeType) + if (changeId && \
changeTracker->elementById(changeId)->getChangeType() == changeType) idBefore = \
changeId; } else {
idBefore = \
checker.currentTable()->format().intProperty(KoCharacterStyle::ChangeTrackerId);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic