kbibtex/kbibtex-0.1.5-xslthtmlexport.patch

16 lines
616 B
Diff
Raw Normal View History

2007-03-21 19:42:38 +00:00
--- kbibtex-0.1.5_orig/src/documentwidget.cpp 2006-10-05 21:48:04.000000000 +0200
+++ kbibtex-0.1.5/src/documentwidget.cpp 2007-03-16 18:59:39.000000000 +0100
@@ -255,7 +255,11 @@
updateFromGUI();
- BibTeX::XSLTransform * transform = NULL;
+ KStandardDirs * kstd = KGlobal::dirs();
+ QString resPath = kstd->findResource( "data", "kbibtexpart/xslt/html.xsl" );
+ BibTeX::XSLTransform *transform = NULL;
+ if ( resPath != NULL )
+ transform = new BibTeX::XSLTransform( resPath );
BibTeX::FileExporter * exporter = NULL;
switch ( format )