Summary: | Fails to open certain OASIS OpenDocument graphics (odg) file(s) | ||
---|---|---|---|
Product: | [Applications] karbon | Reporter: | Philippe Cloutier <chealer> |
Component: | opendocument | Assignee: | Tim Beaulen <tbscope> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Philippe Cloutier
2006-05-25 04:10:56 UTC
SVN commit 544637 by jaham: if neither a master page style with name "Standard" nor with name "Default" is found, use the first one from the list CCBUG:127994 M +6 -0 karbon_part.cc --- branches/koffice/1.5/koffice/karbon/karbon_part.cc #544636:544637 @@ -312,6 +312,12 @@ QDomElement *master = styles.masterPages()[ masterPageName ]; if ( !master ) //last test... master = styles.masterPages()[ "Default" ]; + // last resort, use the first found master page style + if ( ! master ) + { + QDictIterator<QDomElement> it( styles.masterPages() ); + master = it.current(); + } Q_ASSERT( master ); const QDomElement *style = master ? styles.findStyle( master->attributeNS( KoXmlNS::style, "page-layout-name", QString::null ) ) : 0; if( style ) At least it opens now. But odf support is still basic. So 3d content and text-boxes are not implemented yet. As this fix was sufficient for me to close the Debian bug report, I'm closing this too. Thank you. *** Bug has been marked as fixed ***. Uh...thanks also for backing up my brain, Jan :-P |