applied oppf_flver.patch from Ricardo Pedroso
authorMatthias Kramm <kramm@quiss.org>
Fri, 4 Jun 2010 23:10:12 +0000 (16:10 -0700)
committerMatthias Kramm <kramm@quiss.org>
Fri, 4 Jun 2010 23:10:12 +0000 (16:10 -0700)
wx/lib/document.py

index cb9b00d..de0af53 100644 (file)
@@ -101,6 +101,14 @@ class _SaveSWFThread:
                 filename = self.__filename.replace('.swf', form % pagenr)
                 swf.save(filename)
                 swf = gfx.SWF()
+
+                try:
+                    plugin = self.__options.viewers.init(swf, self.__filename)
+                except Exception, e:
+                    wx.CallAfter(Publisher.sendMessage, "PLUGIN_ERROR")
+                    self.__running = False
+                    return
+
                 self.setparameters(swf)
 
             if not self.__keep_running: