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

List:       kde-commits
Subject:    koffice/libs/kotext/opendocument
From:       Casper Boemann <cbr () boemann ! dk>
Date:       2010-11-22 18:59:36
Message-ID: 20101122185936.50833AC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1199788 by boemann:

fix unit test


 M  +2 -2      KoTextLoader.cpp  


--- trunk/koffice/libs/kotext/opendocument/KoTextLoader.cpp #1199787:1199788
@@ -822,7 +822,7 @@
         KoInlineNote *note = new KoInlineNote(KoInlineNote::Footnote);
         if (note->loadOdf(noteElem, d->context, d->styleManager, d->changeTracker)) {
             KoInlineTextObjectManager *textObjectManager = layout->inlineTextObjectManager();
-            textObjectManager->insertInlineObject(cursor, note);
+            textObjectManager->insertInlineObject(cursor, note, cursor.charFormat());
         } else {
             kDebug(32500) << "Error while loading the note !";
             delete note;
@@ -1038,7 +1038,7 @@
                         kWarning(32500) << "bookmark-end of non-existing bookmark - broken document?";
                     }
                 }
-                textObjectManager->insertInlineObject(cursor, bookmark);
+                textObjectManager->insertInlineObject(cursor, bookmark, cursor.charFormat());
             }
         } else if (isTextNS && localName == "bookmark-ref") {
             QString bookmarkName = ts.attribute("ref-name");
[prev in list] [next in list] [prev in thread] [next in thread] 

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