words assert hitting
Thorsten Zachmann
t.zachmann at zagge.de
Sat May 7 07:38:44 BST 2011
Hello Casper,
the following patch fixes an asser I have seen is some documents. As I'm not
sure that is the right fix I write it here. Please commit if you think it is
correct as I might not be on my PC during the day.
Problem is that the page is not set but needed in the place where it asserts
on the availablity of the page.
Test document:
http://www.zagge.de/anchor/cigj.anu.edu.au%252Fcigj%252Flink_documents%252FPublications%252FGender%2520and%2520Transitional%2520Justice.docx
Thorsten
--- a/words/part/KWRootAreaProvider.cpp
+++ b/words/part/KWRootAreaProvider.cpp
@@ -176,8 +176,8 @@ KoTextLayoutRootArea
*KWRootAreaProvider::provide(KoTextDocumentLayout *document
Q_ASSERT(data);
area->setAssociatedShape(shape);
data->setRootArea(area);
- area->setPage(new KWPage(page));
}
+ area->setPage(new KWPage(page));
More information about the calligra-devel
mailing list