summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-08-14 04:29:52 -0700
committerJames E. Blair <corvus@gnu.org>2015-08-14 07:59:10 -0700
commit3464cff661956077c103750fbf6ac7ad6b3cef78 (patch)
treea900f8fc41b9476fb1002f872798d0e72887df96
parentc670c45397e60cffaf4daa581cfdca5a637758c7 (diff)
downloadpresentty-3464cff661956077c103750fbf6ac7ad6b3cef78.tar.gz
presentty-3464cff661956077c103750fbf6ac7ad6b3cef78.tar.xz
presentty-3464cff661956077c103750fbf6ac7ad6b3cef78.zip
Fix setting of default transition
-rw-r--r--presentty/rst.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/presentty/rst.py b/presentty/rst.py
index ab06f76..8368a6a 100644
--- a/presentty/rst.py
+++ b/presentty/rst.py
@@ -123,6 +123,8 @@ class UrwidTranslator(docutils.nodes.GenericNodeVisitor):
name = node['name']
duration = node.get('duration', DEFAULT_TRANSITION_DURATION)
self.transition = self._make_transition(name, duration)
+ if not self.slide:
+ self.default_transition = self.transition
def depart_transition(self, node):
pass