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

List:       kde-commits
Subject:    =?utf-8?q?=5Bcalligra=5D_libs/kotext/opendocument=3A_Fix_saving_?=
From:       Sebastian Sauer <sebastian.sauer () kdab ! com>
Date:       2011-07-14 13:36:41
Message-ID: 20110714133641.EA8EEA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit e313c4a72782442e65673910489cf318a7833b0c by Sebastian Sauer.
Committed on 14/07/2011 at 15:36.
Pushed by sebsauer into branch 'master'.

Fix saving tables.
This reopens the problem commit def0dac tried to solve but better not proper save toc's
in other docs then not saving any sub-frame at all.

@Casper may you have an idea how to proper solve that? If not then I can have a look
tomorrow.
CC_MAIL:bo@boemann.dk

M  +2    -1    libs/kotext/opendocument/KoTextWriter.cpp     

http://commits.kde.org/calligra/e313c4a72782442e65673910489cf318a7833b0c

diff --git a/libs/kotext/opendocument/KoTextWriter.cpp b/libs/kotext/opendocument/KoTextWriter.cpp
index 058e5a3..889842c 100644
--- a/libs/kotext/opendocument/KoTextWriter.cpp
+++ b/libs/kotext/opendocument/KoTextWriter.cpp
@@ -1668,10 +1668,11 @@ void KoTextWriter::Private::writeBlocks(QTextDocument *document, int from, int t
 
         QTextCursor cursor(block);
 
+ /*FIXME does not work cause e.g. tables are in own frames
         if (cursor.currentFrame() != document->rootFrame()) {
             break; // we've reached the "end" (end/footnotes saved in another way)
         }
-
+*/
         QTextBlockFormat format = block.blockFormat();
         if (format.hasProperty(KoParagraphStyle::SectionStartings)) {
             QVariant v = format.property(KoParagraphStyle::SectionStartings);

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

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