Powerpoint fix

This commit is contained in:
Jonathan Corwin 2010-07-10 23:41:36 +01:00
parent 08c36f7e1c
commit fb4faf0dbb

View File

@ -24,7 +24,7 @@
###############################################################################
import os
import loggin
import logging
if os.name == u'nt':
from win32com.client import Dispatch
@ -127,7 +127,7 @@ class PowerpointDocument(PresentationDocument):
The file name of the presentations to run.
"""
log.debug(u'LoadPresentation')
if not self.controller.process.Visible:
if not self.controller.process or not self.controller.process.Visible:
self.controller.start_process()
try:
self.controller.process.Presentations.Open(self.filepath, False,