Commit 0773e6cc authored by Thorsten Zachmann's avatar Thorsten Zachmann

o check is element is a page as it can be that there also other elements

  in the body.

svn path=/trunk/koffice/; revision=693503
parent 0228f524
......@@ -122,13 +122,15 @@ bool KoPADocument::loadOasis( const KoXmlDocument & doc, KoOasisStyles& oasisSty
paContext.addMasterPage (it.key(), masterPage);
}
KoXmlElement pageElement;
forEachElement( pageElement, body )
KoXmlElement element;
forEachElement( element, body )
{
KoPAPage* page = newPage();
page->loadOdf(pageElement, paContext);
if ( element.tagName() == "page" && element.namespaceURI() == KoXmlNS::draw ) {
KoPAPage* page = newPage();
page->loadOdf( element, paContext );
insertPage( page, -1 );
insertPage( page, -1 );
}
}
emit sigProgress( 100 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment