[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bkoffice=5D_libs/kotext=3A_Copy_info_where_possible_?=
From: Thomas Zander <zander () kde ! org>
Date: 2011-03-10 11:20:27
Message-ID: 20110310112027.728E0A60D9 () git ! kde ! org
[Download RAW message or body]
Git commit ee065d5dc3268789dc3c232a24674c4799faff21 by Thomas Zander.
Committed on 10/03/2011 at 00:35.
Pushed by zander into branch 'master'.
Copy info where possible and avoid crash
M +4 -0 libs/kotext/KoInlineNote.cpp
http://commits.kde.org/koffice/ee065d5dc3268789dc3c232a24674c4799faff21
diff --git a/libs/kotext/KoInlineNote.cpp b/libs/kotext/KoInlineNote.cpp
index e97d3a6..ae51c84 100644
--- a/libs/kotext/KoInlineNote.cpp
+++ b/libs/kotext/KoInlineNote.cpp
@@ -229,6 +229,10 @@ void KoInlineNote::saveOdf(KoShapeSavingContext & context)
KoTextDocument textDocument(document);
Q_ASSERT(!d->styleManager.isNull());
textDocument.setStyleManager(d->styleManager.data());
+ if (this->document()) {
+ KoTextDocument origDoc(this->document());
+ textDocument.setChangeTracker(origDoc.changeTracker());
+ }
QTextCursor cursor(document);
cursor.insertFragment(d->text);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic