From eb614bdf38c7b93ed4a6ecca49d99b229a424fb6 Mon Sep 17 00:00:00 2001 From: Philip Ridout Date: Tue, 15 Oct 2013 20:42:17 +0100 Subject: [PATCH] fixes to ppttest.py --- openlp/plugins/presentations/lib/pptviewlib/ppttest.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/openlp/plugins/presentations/lib/pptviewlib/ppttest.py b/openlp/plugins/presentations/lib/pptviewlib/ppttest.py index 00e79e8e9..fb0460f41 100644 --- a/openlp/plugins/presentations/lib/pptviewlib/ppttest.py +++ b/openlp/plugins/presentations/lib/pptviewlib/ppttest.py @@ -175,13 +175,7 @@ class PPTViewer(QtGui.QWidget): int(self.widthEdit.text()), int(self.heightEdit.text())) filename = os.path.normpath(unicode(self.pptEdit.text())).encode('utf-16-le') folder = unicode(self.folderEdit.text()).replace(u'/', u'\\') - #filename = str(self.pptEdit.text()).replace(u'/', u'\\') - #folder = str(self.folderEdit.text()).replace(u'/', u'\\') - print(filename) - print filename, folder - filename = u'C:\\Documents and Settings\\Phill\\Desktop\\Հայաստան.ppt' - preview_path = u'Z:\\Data\\presentations\\Powerpoint Viewer\\Հայաստան.ppt\\slide' - self.pptid = self.pptdll.OpenPPT(filename.encode('utf-16-le'), None, rect, preview_path.encode('utf-16-le')) + self.pptid = self.pptdll.OpenPPT(filename, None, rect, filename.encode('utf-16-le') + folder.encode('utf-16-le')) #self.pptid = self.pptdll.OpenPPT(filename, None, rect, filename + folder) print u'id: ' + unicode(self.pptid) if oldid >= 0: