forked from openlp/openlp
Powerpoint fix
This commit is contained in:
parent
08c36f7e1c
commit
fb4faf0dbb
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user