Version: 1.5.1 (using KDE KDE 3.5.2) Installed from: Debian testing/unstable Packages OS: Linux I am forwarding Debian #366679 about karbon's failure to open a specific odg file, which is available at http://bugs.debian.org/cgi-bin/bugreport.cgi/Diagrama%2520inst.%2520manual.odg?bug=366679;msg=5;att=1 , with karbon 1.5.0. I can reproduce this bug with karbon 1.5.1. Some other odg files open successfully. When trying to open that one, I get on console ASSERT: "master" in /tmp/buildd/koffice-1.5.1/./karbon/karbon_part.cc (315) and in the interface the error Could not open /home/chealer/foo.odg It's possible to preview the file in konqueror.
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