[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/libs/kotext/opendocument
From: Miroslav Nohaj <miroslav.nohaj () ixonos ! com>
Date: 2010-09-07 8:28:05
Message-ID: 20100907082805.16174AC7CB () svn ! kde ! org
[Download RAW message or body]
SVN commit 1172415 by nohaj:
Fix for KWord crash when ending not started bookmark.
M +4 -0 KoTextLoader.cpp
--- trunk/koffice/libs/kotext/opendocument/KoTextLoader.cpp #1172414:1172415
@@ -1024,8 +1024,12 @@
} else if (localName == "bookmark-end") {
bookmark->setType(KoBookmark::EndBookmark);
KoBookmark *startBookmark = \
textObjectManager->bookmarkManager()->retrieveBookmark(uniqBookmarkName); + \
if (startBookmark) { // set end bookmark only if we got start bookmark (we \
might not have in case of broken document) startBookmark->setEndBookmark(bookmark);
+ } else {
+ kWarning(32500) << "bookmark-end of non-existing bookmark - \
broken document?"; }
+ }
textObjectManager->insertInlineObject(cursor, bookmark);
}
} else if (isTextNS && localName == "bookmark-ref") {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic